Function rin_math::map[][src]

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

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