[−][src]Function colorspace::math::clamp
pub fn clamp<T>(x: T, a: T, b: T) -> T where
T: PartialOrd,
Clamp x
to lie in the range [a, b]
pub fn clamp<T>(x: T, a: T, b: T) -> T where
T: PartialOrd,
Clamp x
to lie in the range [a, b]