Function rerun::demo_util::bounce_lerp

source ·
pub fn bounce_lerp<T>(
    a: T,
    b: T,
    t: f32
) -> <<f32 as Mul<T>>::Output as Add>::Output
where T: Mul<f32>, f32: Mul<T>, <T as Mul<f32>>::Output: Add<<f32 as Mul<T>>::Output>, <f32 as Mul<T>>::Output: Add,
Expand description

A linear interpolator that bounces between a and b as t goes above 1.0.