Пример #1
0
 internal bool Contains(BoundingBox b)
 {
     return(X1 <= b.X1 && Y1 <= b.Y1 && b.X2 <= X2 && b.Y2 <= Y2);
 }
Пример #2
0
 internal bool Intersects(BoundingBox bbox)
 {
     return(bbox.X1 <= X2 && bbox.Y1 <= Y2 && bbox.X2 >= X1 && bbox.Y2 >= Y1);
 }