Function nannou::ease::map_clamp

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

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