Function emath::remap_clamp[][src]

pub fn remap_clamp<T>(x: T, from: RangeInclusive<T>, to: RangeInclusive<T>) -> T where
    T: Real
Expand description

Like remap, but also clamps the value so that the returned value is always in the to range.