Function traffloat::lerp[][src]

pub fn lerp<T, U>(a: T, b: T, ratio: U) -> T where
    T: Copy + Add<Output = T> + Sub<Output = T> + Mul<U, Output = T>, 
Expand description

Linear interpolation from a to b, with ratio=0 as a and ratio=1 as b