Trait oddio::Interpolate
source · 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]
Object Safety§
This trait is not object safe.