Crate minterpolate [−] [src]
Data set interpolation for mint
Vector3
and Quaternion
.
Can be extended by users to provide their own data types to interpolate over, using the
InterpolationPrimitive
trait.
Examples
use minterpolate::catmull_rom_spline_interpolate; let input = vec![0., 1., 2., 3., 4.]; let output = vec![ [1., 0., 0.], [0., 0., 0.], [1., 0., 0.], [0., 0., 0.], [-1., 0., 0.], [0., 0., 0.], [-1., 0., 0.], ]; catmull_rom_spline_interpolate(0.5, &input, &output, false);
Traits
InterpolationPrimitive |
Interpolation primitive, defines basic arithmetic needed for interpolation. |
Functions
catmull_rom_spline_interpolate |
Catmull-Rom spline interpolation |
cubic_spline_interpolate |
Cubic Hermite spline interpolation |
linear_interpolate |
Do linear interpolation. |
spherical_linear_interpolate |
Do spherical linear interpolation. |
step_interpolate |
Do step interpolation. |