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.
Angles are measured relative to the current tangent (the tangent of the previous
geometry, or +X when there is none).
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, relative to the current tangent (defaults to 0) (optional) |
endAngle | number | The end angle in degrees, relative to the current tangent (defaults to 180) (optional) |
arc(targetPlane: SceneObject | PlaneLike, endPoint: Point2DLike): ArcPoints
Draws an arc to an end point on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
endPoint | Point2DLike | The end point of the arc |
arc(targetPlane: SceneObject | PlaneLike, startPoint: Point2DLike, endPoint: Point2DLike): ArcPoints
Draws an arc between two points on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
startPoint | Point2DLike | The start point of the arc |
endPoint | Point2DLike | The end point of the arc |
arc(targetPlane: SceneObject | PlaneLike, radius: number, startAngle: number, endAngle: number): ArcAngles
Draws an arc by radius and angle range on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
radius | number | The arc radius |
startAngle | number | The start angle in degrees |
endAngle | number | The end angle in degrees |