Function rin::math::map[][src]

pub fn map<T>(value: T, inmin: T, inmax: T, outmin: T, outmax: T) -> T where
    T: Copy + Add<T, Output = T> + Mul<T, Output = T> + Sub<T, Output = T> + Div<T, Output = T> + Clone + Zero + PartialEq<T>, 

Map a value from an input range inmin..inmax to an output range outmin..outmax