Function any

Source
pub fn any<const D: usize>(
    v: &Matrix<bool, Const<D>, Const<1>, ArrayStorage<bool, D, 1>>,
) -> bool
Expand description

Checks that at least one of the vector components is true.

§Examples:

let vec = glm::vec2(true, false);
assert_eq!(true, glm::any(&vec));

let vec = glm::vec2(true, true);
assert_eq!(true, glm::any(&vec));

let vec = glm::vec2(false, false);
assert_eq!(false, glm::any(&vec));

§See also: