[−][src]Function tray_rust::linalg::lerp
pub fn lerp<T: Mul<f32, Output = T> + Add<Output = T> + Copy>(
t: f32,
a: &T,
b: &T
) -> T
Lerp between a
and b
at some distance t
where t is in [0, 1]
and t = 0 returns a
and t = 1 returns b