Function comp_min

Source
pub fn comp_min<T, const R: usize, const C: usize>(
    m: &Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>,
) -> T
where T: Number,
Expand description

The minimum of every component of the given matrix or vector.

§Examples:

let vec = glm::vec2(3.0, 4.0);
assert_eq!(3.0, glm::comp_min(&vec));

let mat = glm::mat2(0.0, 1.0, -3.0, 3.0);
assert_eq!(-3.0, glm::comp_min(&mat));

§See also: