pub trait Lerp: Copy {
// Required method
fn lerp(self, other: Self, t: f32) -> Self;
}Expand description
Linear interpolation between two values of the same kind, t in 0.0..=1.0.
The one primitive every interpolated quantity shares — implemented here for
the scalar and color bindings, and by bevy-react’s transition engine for its
own channel types (hence public).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".