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