Exemplo n.º 1
0
 public bool IntersectsWith(IntRect rect)
 {
     return(!((Left >= rect.Right) || (Right <= rect.Left) ||
              (Top >= rect.Bottom) || (Bottom <= rect.Top)));
 }
Exemplo n.º 2
0
 public static bool Equals(IntRect rect1, IntRect rect2)
 {
     return(rect1.Equals(rect2));
 }
Exemplo n.º 3
0
 public static IntRect Inflate(IntRect rect, Int2 size)
 {
     return(Inflate(rect, size.x, size.y));
 }