Skip to main content

line()

Draws a line from the current position to the given point.

Returns: Geometry

tip

See the guide for detailed usage examples.

Signatures

line(end: Point2DLike): Geometry

Draws a line from the current position to the given point.

ParameterTypeDescription
endPoint2DLikeThe end point

line(start: Point2DLike, end: Point2DLike): Geometry

Draws a line between two points.

ParameterTypeDescription
startPoint2DLikeThe start point
endPoint2DLikeThe end point

line(targetPlane: SceneObject | PlaneLike, end: Point2DLike): Geometry

Draws a line to the given point on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
endPoint2DLikeThe end point