Function nalgebra_glm::clamp_vec [−][src]
pub fn clamp_vec<N: Number, D: Dimension>(
x: &TVec<N, D>,
min_val: &TVec<N, D>,
max_val: &TVec<N, D>
) -> TVec<N, D> where
DefaultAllocator: Alloc<N, D>,
Returns min(max(x[i], min_val[i]), max_val[i])
for each component in x
using the components of min_val
and max_val
as bounds.