Bezier.tangent_at
- Bezier.tangent_at(t)[source]
Compute the tangent vector to the curve at the point at the given parameter.
- Parameters:
- tfloat
The value of the curve parameter. Must be between 0 and 1.
- Returns:
compas.geometry.Vector
The corresponding tangent vector.
Examples
>>> curve = Bezier([[0.0, 0.0, 0.0], [0.5, 1.0, 0.0], [1.0, 0.0, 0.0]]) >>> print(curve.tangent_at(0.5)) Vector(x=1.000, y=0.000, z=0.000)