fix vector bool code

This commit is contained in:
Quaternions 2024-09-05 16:06:00 -07:00
parent 5cdd2c3ee1
commit 488a6b6496

View File

@ -80,15 +80,13 @@ macro_rules! impl_vector {
}
impl<const N:usize> Vector<N,bool>{
const ALL:[bool;N]=[true;N];
const NONE:[bool;N]=[false;N];
#[inline]
pub fn all(&self)->bool{
core::matches!(self.array,ALL)
self.array==[true;N]
}
#[inline]
pub fn any(&self)->bool{
!core::matches!(self.array,NONE)
self.array!=[false;N]
}
}