pub fn map_range( value: f64, from_min: f64, from_max: f64, to_min: f64, to_max: f64, ) -> f64
Map a value from one range to another