pub trait Interpolable {
// Required method
fn lerp(&self, other: Self, t: f64) -> Self;
}Expand description
A trait for types that support linear interpolation between two values.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Interpolable for f64
Implements the Interpolable trait for f64.
impl Interpolable for f64
Implements the Interpolable trait for f64.
Implementors§
impl Interpolable for Vector2D
Implements Interpolable for Vector2D.
impl Interpolable for Vector3D
Implements Interpolable for Vector3D.