pub fn remap<T>(x: T, from: RangeInclusive<T>, to: RangeInclusive<T>) -> Twhere
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()
.