pub fn remap(x: f32, from: (f32, f32), to: (f32, f32)) -> f32
Map x from the from range onto the to range, linearly and without clamping.
x
from
to