Function nalgebra_glm::all

source ·
pub fn all<D: Dimension>(v: &TVec<bool, D>) -> boolwhere
    DefaultAllocator: Alloc<bool, D>,
Expand description

Checks that all the vector components are true.

Examples:

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

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

See also: