Skip to main content

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.

ParameterTypeDescription
endPointPoint2DLikeThe 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.

ParameterTypeDescription
startPointPoint2DLikeThe start point of the arc
endPointPoint2DLikeThe 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.

ParameterTypeDescription
radiusnumberThe arc radius
startAnglenumberThe start angle in degrees, relative to the current tangent (defaults to 0) (optional)
endAnglenumberThe 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.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
endPointPoint2DLikeThe end point of the arc

arc(targetPlane: SceneObject | PlaneLike, startPoint: Point2DLike, endPoint: Point2DLike): ArcPoints

Draws an arc between two points on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
startPointPoint2DLikeThe start point of the arc
endPointPoint2DLikeThe 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.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
radiusnumberThe arc radius
startAnglenumberThe start angle in degrees
endAnglenumberThe end angle in degrees