Enum gltf_json::animation::Interpolation [−][src]
pub enum Interpolation {
Linear,
Step,
CatmullRomSpline,
CubicSpline,
}Specifies an interpolation algorithm.
Variants
LinearLinear 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.
StepStep 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.
CatmullRomSplineUniform 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.
CubicSplineCubic 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 Clone for Interpolation[src]
impl Clone for Interpolationfn clone(&self) -> Interpolation[src]
fn clone(&self) -> InterpolationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Interpolation[src]
impl Copy for Interpolationimpl Debug for Interpolation[src]
impl Debug for Interpolationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Interpolation[src]
impl Default for Interpolationimpl Serialize for Interpolation[src]
impl Serialize for InterpolationAuto Trait Implementations
impl Send for Interpolation
impl Send for Interpolationimpl Sync for Interpolation
impl Sync for Interpolation