pub trait Interpolate: Copy {
// Required methods
fn lerp(self, other: Self, t: f32) -> Self;
fn distance(self, other: Self) -> f32;
}Expand description
A value an animation can move through.
t outside 0..1 is meaningful: overshoot curves and underdamped springs
deliberately pass their target, so implementations extrapolate rather than
clamp.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".