pub trait Interpolate {
// Required method
fn interpolate(&self, other: &Self, t: f32) -> Self;
}Expand description
Types that can be linearly interpolated, for use with Smoothed
Required Methods§
Sourcefn interpolate(&self, other: &Self, t: f32) -> Self
fn interpolate(&self, other: &Self, t: f32) -> Self
Interpolate between self and other by t, which should be in [0, 1]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.