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. Chain .centered() to center the arc symmetrically around the start angle.

ParameterTypeDescription
radiusnumberThe arc radius
startAnglenumberThe start angle in degrees (defaults to 0) (optional)
endAnglenumberThe end angle in degrees (defaults to 180) (optional)
note

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