Trait lininterp::Lerp
[−]
[src]
pub trait Lerp<F = f32>: Sized { fn lerp(&self, b: &Self, factor: F) -> Self; fn lerp_points<Y>(&self, a: &Self, b: &Self, y0: &Y, y1: &Y) -> Y
where
Y: Lerp<F>,
Self: InvLerp<F>, { ... } }
linear interpolation trait, blends between self and the first parameter, uses reference args for suitability with heavier types
Required Methods
Provided Methods
fn lerp_points<Y>(&self, a: &Self, b: &Self, y0: &Y, y1: &Y) -> Y where
Y: Lerp<F>,
Self: InvLerp<F>,
Y: Lerp<F>,
Self: InvLerp<F>,