Function radiant_utils::maths::clamp[][src]

pub fn clamp<T>(v: T, min: T, max: T) -> T where
    T: PartialOrd

Returns the given value limited to the bounds min and max.