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.
| Parameter | Type | Description |
|---|---|---|
end | Point2DLike | The end point |
line(start: Point2DLike, end: Point2DLike): Geometry
Draws a line between two points.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | The start point |
end | Point2DLike | The end point |
note
All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.