num_opt::hermite

Function set_derivatives_using_catmull_rom

Source
pub fn set_derivatives_using_catmull_rom<T: MyFloat>(points: &mut Vec<Point<T>>)
Expand description

Sets the first three derivatives using recursive cardinal curves.
This is needed to get reasonable starting values for the derivatives.
That way the optimization can proceed smoothly.