Trait oddio::Interpolate [−][src]
pub trait Interpolate { fn interpolate(&self, other: &Self, t: f32) -> Self; }
Expand description
Types that can be linearly interpolated, for use with Smoothed
Required methods
fn 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]