arc()
Draws an arc to an end point from the current position.
Chain .radius(r) to set bulge radius, or .center(point) to specify the circle center.
Returns: ArcPoints | ArcAngles
Signatures
arc(endPoint: Point2DLike): ArcPoints
Draws an arc to an end point from the current position.
Chain .radius(r) to set bulge radius, or .center(point) to specify the circle center.
| Parameter | Type | Description |
|---|---|---|
endPoint | Point2DLike | The end point of the arc |
arc(startPoint: Point2DLike, endPoint: Point2DLike): ArcPoints
Draws an arc from a start point to an end point.
By default, uses the current position as the arc center.
Chain .radius(r) to use bulge radius instead, or .center(point) to specify an explicit center.
| Parameter | Type | Description |
|---|---|---|
startPoint | Point2DLike | The start point of the arc |
endPoint | Point2DLike | The end point of the arc |
arc(radius: number, startAngle?: number, endAngle?: number): ArcAngles
Draws an arc by radius and angle range at the current position.
Chain .centered() to center the arc symmetrically around the start angle.
| Parameter | Type | Description |
|---|---|---|
radius | number | The arc radius |
startAngle | number | The start angle in degrees (defaults to 0) (optional) |
endAngle | number | The end angle in degrees (defaults to 180) (optional) |
All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.