Exemple #1
0
 /// <summary>
 /// Checks if this rectangle intersects with another rectangle.
 /// </summary>
 public bool IntersectsWith(Rectangle rect)
 {
     return !(this.Left > rect.Right || this.Right < rect.Left || this.Top > rect.Bottom || this.Bottom < rect.Top);
 }
Exemple #2
0
 static Rectangle()
 {
     Empty = default(Rectangle);
 }