Пример #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);
 }
Пример #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);
 }