pub fn clamp<T: Number, V: NumberOps<T>>(x: V, min: V, max: V) -> V
returns the value x clamped to the range of min and max
x
min
max