Skip to main content

tArc()

Draws a tangent arc from the current position using the current tangent direction, ending tangent to a target line. The radius is solved automatically; the arc must be tangent to the target but does not need to touch its finite extent. By default the arc curves to the left of the start tangent — chain .flip() to curve to the right instead.

Returns: Geometry

tip

See the guide for detailed usage examples.

Signatures

tArc(target: SceneObject | QualifiedGeometry): ITangentArcToObject

Draws a tangent arc from the current position using the current tangent direction, ending tangent to a target line. The radius is solved automatically; the arc must be tangent to the target but does not need to touch its finite extent. By default the arc curves to the left of the start tangent — chain .flip() to curve to the right instead.

ParameterTypeDescription
targetSceneObject | QualifiedGeometryThe target line (or a qualified line)

tArc(radius: number, target: SceneObject | QualifiedGeometry): Geometry

Draws a tangent arc from the current position using the current tangent direction, with the given radius, ending at the first intersection with the target geometry along the arc's sweep direction. A negative radius flips the sweep direction. Supported targets: lines, circles, and arcs.

ParameterTypeDescription
radiusnumberThe arc radius. A negative value flips the sweep direction.
targetSceneObject | QualifiedGeometryThe target geometry to intersect with

tArc(radius?: number, endAngle?: number): Geometry

Draws a tangent arc with a given radius and end angle.

ParameterTypeDescription
radiusnumberThe arc radius (defaults to 100). A negative value flips the sweep direction. (optional)
endAnglenumberThe sweep angle in degrees (defaults to 90) (optional)

tArc(radius: number, angle: number, tangent: Point2DLike): Geometry

Draws a tangent arc with a given radius, angle, and start tangent direction.

ParameterTypeDescription
radiusnumberThe arc radius. A negative value flips the sweep direction.
anglenumberThe sweep angle in degrees
tangentPoint2DLikeThe start tangent direction

tArc(endPoint: Point2DLike): Geometry

Draws a tangent arc to a given end point.

ParameterTypeDescription
endPointPoint2DLikeThe end point of the arc

tArc(endPoint: Point2DLike, tangent: Point2DLike): Geometry

Draws a tangent arc to a given end point with an explicit end tangent.

ParameterTypeDescription
endPointPoint2DLikeThe end point of the arc
tangentPoint2DLikeThe end tangent direction

tArc(startPoint: Point2DLike, endPoint: Point2DLike, tangent: Point2DLike): Geometry

Draws a tangent arc from a start point to an end point with a tangent.

ParameterTypeDescription
startPointPoint2DLikeThe start point of the arc
endPointPoint2DLikeThe end point of the arc
tangentPoint2DLikeThe end tangent direction

tArc(c1: SceneObject, c2: SceneObject, radius: number, mustTouch?: boolean): TangentArcTwoObjects

Draws all possible tangent arcs between two geometry objects.

ParameterTypeDescription
c1SceneObjectThe first geometry object
c2SceneObjectThe second geometry object
radiusnumberThe arc radius
mustTouchbooleanWhether the arc must touch both objects (optional)

tArc(c1: QualifiedGeometry, c2: QualifiedGeometry, radius: number, mustTouch?: boolean): TangentArcTwoObjects

Draws a tangent arc between two qualified geometry objects.

ParameterTypeDescription
c1QualifiedGeometryThe first qualified geometry object (e.g., outside(circle1))
c2QualifiedGeometryThe second qualified geometry object
radiusnumberThe arc radius
mustTouchbooleanWhether the arc must touch both objects (optional)

tArc(c1: Point2DLike, c2: Point2DLike, radius: number, mustTouch?: boolean): TangentArcTwoObjects

Draws a tangent arc between two points.

ParameterTypeDescription
c1Point2DLikeThe first point
c2Point2DLikeThe second point
radiusnumberThe arc radius
mustTouchbooleanWhether the arc must touch both points (optional)

tArc(c1: Point2DLike | SceneObject | QualifiedGeometry, c2: Point2DLike | SceneObject | QualifiedGeometry, radius: number, mustTouch?: boolean): TangentArcTwoObjects

Draws a tangent arc using a mix of geometry objects, qualified objects, or points as constraints.

ParameterTypeDescription
c1Point2DLike | SceneObject | QualifiedGeometryThe first constraint object or point
c2Point2DLike | SceneObject | QualifiedGeometryThe second constraint object or point
radiusnumberThe arc radius
mustTouchbooleanWhether the arc must touch both constraints (optional)