[][src]Function nalgebra_glm::any

pub fn any<D: Dimension>(v: &TVec<bool, D>) -> bool where
    DefaultAllocator: Alloc<bool, D>, 

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: