pub trait Interpolate: Sized {
// Required method
fn interpolate(from: Self, to: Self, phase: f32) -> Self;
}Expand description
A value that supports linear interpolation and extrapolation.
Required Methods§
Sourcefn interpolate(from: Self, to: Self, phase: f32) -> Self
fn interpolate(from: Self, to: Self, phase: f32) -> Self
Resolves the value at phase, where 0 is from and 1 is to.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".