fish_lib/utils/
math.rs

1
2
3
pub fn float_interpolate(a: f32, b: f32, factor: f32) -> f32 {
    a + ((b - a) * factor)
}