Trait cppn::position::Interpolate
[−]
[src]
pub trait Interpolate { fn interpolate(&self, other: &Self, t: f64) -> Self; fn interpolate_multi(&self, other: &Self, t: &Self) -> Self; }
Required Methods
fn interpolate(&self, other: &Self, t: f64) -> Self
Linearly interpolates between self
and other
.
For t = 0.0 this should return self
. For t = 1.0 this
should return other
.
fn interpolate_multi(&self, other: &Self, t: &Self) -> Self
Implementors
impl Interpolate for Position2d