Пример #1
0
 public static Rect overlapRect(int A_xx, int A_yy, int A_ww, int A_hh,
                                int B_xx, int B_yy, int B_ww, int B_hh)
 {
     Rect A = new Rect(A_xx, A_yy, A_ww, A_hh);
     Rect B = new Rect(B_xx, B_yy, B_ww, B_hh);
     return A.overlapRect(B);
 }
Пример #2
0
 public static Rect overlapRect(Rect A, int xx, int yy, int ww, int hh)
 {
     // This method overload may be redundant...
     Rect B = new Rect(xx, yy, ww, hh);
     return A.overlapRect(B);
 }