Bezier.tangent
- Bezier.tangent(t)[source]
Compute the tangent vector at a point on the curve.
- Parameters
t (float) – 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]]) >>> curve.tangent(0.5) Vector(1.000, 0.000, 0.000)