Function nalgebra::clamp
[−]
[src]
pub fn clamp<T: PartialOrd>(val: T, min: T, max: T) -> T
Change the input value to ensure it is on the range [min, max]
.