This commit is contained in:
Quaternions 2024-08-28 13:29:42 -07:00
parent 0db0f2854e
commit 3b54bc8326

View File

@ -36,7 +36,7 @@ impl Aabb{
}
pub fn intersects(&self,aabb:&Aabb)->bool{
let bvec=self.min.lt(aabb.max)&aabb.min.lt(self.max);
matches!(bvec.to_array(),[true,true,true])
bvec.all()
}
pub fn size(&self)->Planar64Vec3{
self.max-self.min