Skip to main content

vLine()

Draws a vertical line of the given distance. Chain .centered() to center the line on the current position.

Returns: VLine

Signatures

vLine(distance: NumberParam): VLine

Draws a vertical line of the given distance. Chain .centered() to center the line on the current position.

ParameterTypeDescription
distanceNumberParamThe line length

vLine(target: SceneObject): VLine

Draws a vertical line that ends where it intersects the target geometry. The nearest intersection (in either direction along the Y axis) is used.

ParameterTypeDescription
targetSceneObjectThe geometry to intersect with

vLine(start: Point2DLike, distance: NumberParam): VLine

Draws a vertical line from a start point. Chain .centered() to center the line on the start point.

ParameterTypeDescription
startPoint2DLikeThe start point
distanceNumberParamThe line length

vLine(start: Point2DLike, target: SceneObject): VLine

Draws a vertical line from a start point that ends where it intersects the target geometry. The nearest intersection (in either direction along the Y axis) is used.

ParameterTypeDescription
startPoint2DLikeThe start point
targetSceneObjectThe geometry to intersect with

vLine(targetPlane: SceneObject | PlaneLike, distance: NumberParam): VLine

Draws a vertical line on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
distanceNumberParamThe line length