Enum gltf::animation::Interpolation [−][src]
pub enum Interpolation { 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 Clone for Interpolation
[src]
impl Clone for Interpolation
fn clone(&self) -> Interpolation
[src]
fn clone(&self) -> Interpolation
Returns 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 Default for Interpolation
[src]
impl Default for Interpolation
fn default() -> Interpolation
[src]
fn default() -> Interpolation
Returns the "default value" for a type. Read more
impl Debug for Interpolation
[src]
impl Debug for Interpolation
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for Interpolation
[src]
impl Copy for Interpolation
impl Eq for Interpolation
[src]
impl Eq for Interpolation
impl PartialEq<Interpolation> for Interpolation
[src]
impl PartialEq<Interpolation> for Interpolation
fn eq(&self, other: &Interpolation) -> bool
[src]
fn eq(&self, other: &Interpolation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Interpolation
[src]
impl<'de> Deserialize<'de> for Interpolation
fn deserialize<__D>(
__deserializer: __D
) -> Result<Interpolation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Interpolation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Interpolation
[src]
impl Serialize for Interpolation
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl Send for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Sync for Interpolation