tArc()
Draws a tangent arc with a given radius and end angle.
Returns: Geometry
tip
See the guide for detailed usage examples.
Signatures
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) (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 |
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 a tangent arc 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) |