Catmull-Rom Spline Tangent

Pure
CatmullRomSplineTangent

Returns the tangent (derivative) of a Catmull-Rom spline at parameter T.

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
P0FVectorP0 parameter
P1FVectorP1 parameter
P2FVectorP2 parameter
P3FVectorP3 parameter
Tfloat 0-1T parameter

Outputs

NameTypeDescription
ReturnValueFVectorReturnValue output

Example Use Cases

Example 1

Orient an object along a spline path.

Example 2

Calculate velocity direction on a curved track.