Skip to main content

remap

Function remap 

Source
pub fn remap(x: f32, from: (f32, f32), to: (f32, f32)) -> f32
Expand description

Map x from the from range onto the to range, linearly and without clamping.