Enum gltf::animation::InterpolationAlgorithm
[−]
[src]
pub enum InterpolationAlgorithm { Linear, Step, CatmullRomSpline, CubicSpline, }
Specifies an interpolation algorithm.
Variants
Linear
Linear interpolation.
The animated values are linearly interpolated between keyframes. When targeting a rotation, spherical linear interpolation (slerp) should be used to interpolate quaternions. The number output of elements must equal the number of input elements.
Step
Step interpolation.
The animated values remain constant to the output of the first keyframe, until the next keyframe. The number of output elements must equal the number of input elements.
CatmullRomSpline
Uniform Catmull-Rom spline interpolation.
The animation's interpolation is computed using a uniform Catmull-Rom spline. The number of output elements must equal two more than the number of input elements. The first and last output elements represent the start and end tangents of the spline. There must be at least four keyframes when using this interpolation.
CubicSpline
Cubic spline interpolation.
The animation's interpolation is computed using a uniform Catmull-Rom spline. The number of output elements must equal two more than the number of input elements. The first and last output elements represent the start and end tangents of the spline. There must be at least four keyframes when using this interpolation.
Trait Implementations
impl Default for InterpolationAlgorithm
[src]
fn default() -> InterpolationAlgorithm
impl Copy for InterpolationAlgorithm
[src]
impl<'de> Deserialize<'de> for InterpolationAlgorithm
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpolationAlgorithm, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<InterpolationAlgorithm, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Debug for InterpolationAlgorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for InterpolationAlgorithm
[src]
fn clone(&self) -> InterpolationAlgorithm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more