map_range

Function map_range 

Source
pub fn map_range(
    value: f64,
    from_min: f64,
    from_max: f64,
    to_min: f64,
    to_max: f64,
) -> f64
Expand description

Map a value from one range to another