Function vox_geometry_rust::math_utils::clamp [−][src]
pub fn clamp<T: Float>(val: T, low: T, high: T) -> T
Expand description
Returns the clamped value.
-
Parameter val The value.
-
Parameter low The low value.
-
Parameter high The high value.
-
tparam T Value type.
-
return The clamped value.