Exemplo n.º 1
0
 public void Intersects(Rect2 rect, out bool result)
 {
     result = x >= rect.left && x <= rect.right && y >= rect.bottom && y <= rect.top;
 }
Exemplo n.º 2
0
 public bool Intersects(Rect2 rect)
 {
     return(x >= rect.left && x <= rect.right && y >= rect.bottom && y <= rect.top);
 }