예제 #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);
 }
예제 #2
0
 static Rectangle()
 {
     Empty = default(Rectangle);
 }