1 2 3 4 5 6
//! Helpful, static functions for game dev pub fn lerp(val: f64, approach: f64, weight: f64) -> f64 { val * (1.0 - weight) + (approach * weight) }