Enum kgltf::AnimationSamplerInterpolation[][src]

pub enum AnimationSamplerInterpolation {
    Linear,
    Step,
    Cubicspline,
}

Interpolation algorithm.

Variants

Linear

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

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.

Cubicspline

The animation’s interpolation is computed using a cubic spline with specified tangents. The number of output elements must equal three times the number of input elements. For each input element, the output stores three elements, an in-tangent, a spline vertex, and an out-tangent. There must be at least two keyframes when using this interpolation.

Trait Implementations

impl Clone for AnimationSamplerInterpolation[src]

impl Debug for AnimationSamplerInterpolation[src]

impl<'a> Deserialize<'a> for AnimationSamplerInterpolation[src]

impl Serialize for AnimationSamplerInterpolation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<'a, T> FromJson<'a> for T where
    T: Deserialize<'a>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToJson for T where
    T: Serialize
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.