Skip to main content

clamp

Function clamp 

Source
pub fn clamp<T: Number, V: NumberOps<T>>(x: V, min: V, max: V) -> V
Expand description

returns the value x clamped to the range of min and max