Function angle_sc::clamp

source ·
pub fn clamp<T>(value: T, min: T, max: T) -> T
where T: PartialOrd + Copy,
Expand description

Clamp a value to lie in the range min, max inclusive.