Exemplo n.º 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);
 }
Exemplo n.º 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);
 }