lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit 488a6b6496 - Show all commits

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]
}
}