Trait Lerp
aurum_numeric
pub trait Lerp<T> { fn lerp(a: Self, b: Self, t: T) -> Self; }
Trait for linear interpolation.
fn lerp(a: Self, b: Self, t: T) -> Self
impl<N> Lerp<f32> for N where N: Copy + Add<Output = N> + Sub<Output = N> + RawFrom<f32>, f32: RawFrom<N>,
impl<N> Lerp<f64> for N where N: Copy + Add<Output = N> + Sub<Output = N> + RawFrom<f64>, f64: RawFrom<N>,