lerp

Function lerp 

Source
pub fn lerp<T, S>(source_value: &T, target_value: &T, ratio: S) -> T
where T: Add + Mul<S> + From<<<T as Mul<S>>::Output as Add>::Output> + Copy, S: Float, <T as Mul<S>>::Output: Add,
Expand description

Interpolates between values. Returns source_value for ratio = 0.0 and target_value for ratio = 1.0.