Function nalgebra_glm::clamp[][src]

pub fn clamp<N: Number, D: Dimension>(
    x: &TVec<N, D>,
    min_val: N,
    max_val: N
) -> TVec<N, D> where
    DefaultAllocator: Alloc<N, D>, 

Returns min(max(x[i], min_val), max_val) for each component in x using the floating-point values min_val andmax_val`.

See also: