pub enum Interpolation {
Linear,
Step,
CubicSpline,
}Expand description
The interpolation algorithm attached to a glTF animation sampler.
Variants§
Linear
Interpolate linearly, using spherical interpolation for quaternions.
Step
Hold the preceding sample until the following keyframe is reached.
CubicSpline
Evaluate the glTF Hermite spline using its stored derivatives.
Trait Implementations§
Source§impl Clone for Interpolation
impl Clone for Interpolation
impl Copy for Interpolation
Source§impl Debug for Interpolation
impl Debug for Interpolation
Source§impl Default for Interpolation
impl Default for Interpolation
impl Eq for Interpolation
Source§impl From<Interpolation> for Interpolation
impl From<Interpolation> for Interpolation
Source§fn from(value: Interpolation) -> Self
fn from(value: Interpolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Interpolation
impl PartialEq for Interpolation
impl StructuralPartialEq for Interpolation
Auto Trait Implementations§
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnsafeUnpin for Interpolation
impl UnwindSafe for Interpolation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more