Skip to main content

remap

Function remap 

Source
pub fn remap(
    val: f32,
    in_min: f32,
    in_max: f32,
    out_min: f32,
    out_max: f32,
) -> f32
Expand description

Remap a value from [in_min, in_max] to [out_min, out_max].