Polyline.tangent_at

Polyline.tangent_at(t)[source]

Tangent vector at a specific normalized parameter.

Parameters:
tfloat

The parameter value.

Returns:
compas.geometry.Vector

The tangent vector at the specified parameter.

Examples

>>> polyline = Polyline([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0]])
>>> polyline.tangent(0.75)
Vector(0.000, 1.000, 0.000)