bvec
This commit is contained in:
parent
0db0f2854e
commit
3b54bc8326
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user