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
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.
| Parameter | Type | Description |
|---|---|---|
target | SceneObject | QualifiedGeometry | The 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.
| Parameter | Type | Description |
|---|---|---|
radius | number | The arc radius. A negative value flips the sweep direction. |
target | SceneObject | QualifiedGeometry | The target geometry to intersect with |
tArc(radius?: number, endAngle?: number): Geometry
Draws a tangent arc with a given radius and end angle.
| Parameter | Type | Description |
|---|---|---|
radius | number | The arc radius (defaults to 100). A negative value flips the sweep direction. (optional) |
endAngle | number | The 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.
| Parameter | Type | Description |
|---|---|---|
radius | number | The arc radius. A negative value flips the sweep direction. |
angle | number | The sweep angle in degrees |
tangent | Point2DLike | The start tangent direction |
tArc(endPoint: Point2DLike): Geometry
Draws a tangent arc to a given end point.
| Parameter | Type | Description |
|---|---|---|
endPoint | Point2DLike | The 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.
| Parameter | Type | Description |
|---|---|---|
endPoint | Point2DLike | The end point of the arc |
tangent | Point2DLike | The 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.
| Parameter | Type | Description |
|---|---|---|
startPoint | Point2DLike | The start point of the arc |
endPoint | Point2DLike | The end point of the arc |
tangent | Point2DLike | The end tangent direction |
tArc(c1: SceneObject, c2: SceneObject, radius: number, mustTouch?: boolean): TangentArcTwoObjects
Draws all possible tangent arcs between two geometry objects.
| Parameter | Type | Description |
|---|---|---|
c1 | SceneObject | The first geometry object |
c2 | SceneObject | The second geometry object |
radius | number | The arc radius |
mustTouch | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
c1 | QualifiedGeometry | The first qualified geometry object (e.g., outside(circle1)) |
c2 | QualifiedGeometry | The second qualified geometry object |
radius | number | The arc radius |
mustTouch | boolean | Whether the arc must touch both objects (optional) |
tArc(c1: Point2DLike, c2: Point2DLike, radius: number, mustTouch?: boolean): TangentArcTwoObjects
Draws a tangent arc between two points.
| Parameter | Type | Description |
|---|---|---|
c1 | Point2DLike | The first point |
c2 | Point2DLike | The second point |
radius | number | The arc radius |
mustTouch | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
c1 | Point2DLike | SceneObject | QualifiedGeometry | The first constraint object or point |
c2 | Point2DLike | SceneObject | QualifiedGeometry | The second constraint object or point |
radius | number | The arc radius |
mustTouch | boolean | Whether the arc must touch both constraints (optional) |