コード例 #1
0
ファイル: Rectangle.cs プロジェクト: Artentus/GameUtils
 /// <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
ファイル: Rectangle.cs プロジェクト: Artentus/GameUtils
 static Rectangle()
 {
     Empty = default(Rectangle);
 }