Example #1
0
 public bool Overlaps(BoundingBox region)
 {
     return (region.Right >= Left || region.Left < Right) &&
         (region.Bottom >= Top || region.Top < Bottom) &&
         (region.Back >= Front || region.Front < Back);
 }
Example #2
0
 public bool Contains(BoundingBox region)
 {
     return (region.Right >= Left && region.Left < Right) &&
         (region.Bottom >= Top && region.Top < Bottom) &&
         (region.Back >= Front && region.Front < Back);
 }