num_opt::hermite

Function catmull_rom

Source
pub fn catmull_rom<T: MyFloat>(values: &[T], coeff: Fpt) -> Vec<T>
Expand description

Uses Catmull-Rom to calculate derivatives

Catmull-Rom creates a cardinal spline with good overall shape, ensuring smooth transitions between points by computing tangents based on neighboring points.

Returns a vector the derivatives.