Function lerp

Source
pub fn lerp(a: f32, b: f32, t: f32) -> f32
Expand description

Linear interpolation a + (b - a) * t (t is not clamped).

assert_eq!(ferravex_play::tween::lerp(10., 20., 0.25), 12.5);