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: number): VLine

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

ParameterTypeDescription
distancenumberThe 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: number): VLine

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

ParameterTypeDescription
startPoint2DLikeThe start point
distancenumberThe 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: number): VLine

Draws a vertical line on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
distancenumberThe line length