pub fn bounce_lerp<T>( a: T, b: T, t: f32, ) -> <<f32 as Mul<T>>::Output as Add>::Outputwhere T: Mul<f32>, f32: Mul<T>, <T as Mul<f32>>::Output: Add<<f32 as Mul<T>>::Output>, <f32 as Mul<T>>::Output: Add,
A linear interpolator that bounces between a and b as t goes above 1.0.
a
b
t
1.0