pub fn sample_catmull_rom(
cps: &[[f32; 3]],
samples_per_segment: usize,
) -> Vec<[f32; 3]>Expand description
Sample a Catmull-Rom curve through cps with samples_per_segment
evenly-spaced parameter steps per segment. The first CP appears once at
the start; each subsequent segment contributes samples_per_segment
points (so the final CP appears once at the end). Returns owned points.