Skip to main content

tLine()

Draws a line tangent to the previous geometry with the given distance.

Returns: Geometry

tip

See the guide for detailed usage examples.

Signatures

tLine(distance: number): Geometry

Draws a line tangent to the previous geometry with the given distance.

ParameterTypeDescription
distancenumberThe tangent line length

tLine(c1: SceneObject, c2: SceneObject, mustTouch?: boolean): TwoObjectsTangentLine

Draws a line tangent to two geometry objects.

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

tLine(c1: QualifiedGeometry, c2: QualifiedGeometry, mustTouch?: boolean): TwoObjectsTangentLine

Draws a line tangent to two qualified geometry objects.

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

tLine(c1: SceneObject | QualifiedGeometry, c2: SceneObject | QualifiedGeometry, mustTouch?: boolean): TwoObjectsTangentLine

Draws a line tangent to a combination of geometry and qualified geometry objects.

ParameterTypeDescription
c1SceneObject | QualifiedGeometryThe first constraint (geometry or qualified geometry)
c2SceneObject | QualifiedGeometryThe second constraint (geometry or qualified geometry)
mustTouchbooleanWhether the line must touch both objects (optional)

tLine(c1: SceneObject, mustTouch?: boolean): Geometry

Draws a line tangent to one geometry object.

ParameterTypeDescription
c1SceneObjectThe geometry object to be tangent to
mustTouchbooleanWhether the line must touch the object (optional)

tLine(c1: QualifiedGeometry, mustTouch?: boolean): Geometry

Draws a line tangent to a qualified geometry object.

ParameterTypeDescription
c1QualifiedGeometryThe qualified geometry object (e.g., outside(circle1))
mustTouchbooleanWhether the line must touch the object (optional)