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
note

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