Skip to main content

vLine()

Draws a vertical line of the given distance.

Returns: Geometry

Signatures

vLine(distance: number, centered?: boolean): Geometry

Draws a vertical line of the given distance.

ParameterTypeDescription
distancenumberThe line length
centeredbooleanWhether to center the line on the current position (optional)

vLine(start: Point2DLike, distance: number, centered?: boolean): Geometry

Draws a vertical line from a start point.

ParameterTypeDescription
startPoint2DLikeThe start point
distancenumberThe line length
centeredbooleanWhether to center the line on the start point (optional)
note

All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.