nalgebra_glm

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

Checks that all the vector components are true.

true

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

any

not