Function emath::remap [−][src]
pub fn remap<T>(x: T, from: RangeInclusive<T>, to: RangeInclusive<T>) -> T where
    T: Real, Expand description
Linearly remap a value from one range to another,
so that when x == from.start() returns to.start()
and when x == from.end() returns to.end().
