Expand description
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);Enums§
- Interpolation
Function - Supported interpolation functions
Traits§
- Interpolation
Primitive - Interpolation primitive, defines basic arithmetic needed for interpolation.
Functions§
- catmull_
rom_ spline_ interpolate - Catmull-Rom spline interpolation
- cubic_
spline_ interpolate - Cubic Hermite spline interpolation
- get_
input_ index - Calculate the keyframe index in the input collection
- get_
interpolation_ factor - Calculate the keyframe index in the input collection, and the interpolation factor between the current keyframe and the next keyframe.
- linear_
interpolate - Do linear interpolation.
- quasi_
spherical_ linear_ interpolate - Do quasi spherical linear interpolation.
- spherical_
linear_ interpolate - Do spherical linear interpolation.
- step_
interpolate - Do step interpolation.