[][src]Function nannou::ease::map_clamp

pub fn map_clamp<T, E>(
    value: T,
    inmin: T,
    inmax: T,
    outmin: T,
    outmax: T,
    eq: E
) -> T where
    E: FnOnce(T, T, T, T) -> T,
    T: PartialOrd<T> + Sub<T, Output = T> + Add<T, Output = T> + Copy + Zero

Maps a value from an input range to an output range clamping both the input and output to the corresponding ranges