[][src]Function bae_rs::utils::lerp

pub fn lerp<T>(x: T, x1: T, x2: T, y1: T, y2: T) -> T where
    T: Copy + Sized + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>, 

Linear interpolation (y-y1 = m * (x-x1)) of a given value.