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