Cubic Interpolation

Pure
CubicInterp

Cubic Hermite interpolation between P0 and P1 using tangents T0 and T1.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
P0floatP0 parameter
T0floatT0 parameter
P1floatP1 parameter
T1floatT1 parameter
Alphafloat 0-1Alpha parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Smooth keyframe interpolation in a custom animation system.

Example 2

High-quality curve fitting for procedural paths.