pub fn hermite_interpolate(
x1: f32,
x2: f32,
y1: f32,
y2: f32,
d1: f32,
d2: f32,
input: f32,
) -> f32Expand description
Hermite cubic interpolation between two adjacent spline points.
Given two points (x1, y1) and (x2, y2) with derivatives d1 and d2,
evaluates the hermite cubic at input.
Matches vanilla’s formula: lerp(t, y1, y2) + t * (1 - t) * lerp(t, a, b).