コード例 #1
0
ファイル: RectF.cs プロジェクト: Dazmo/Terraria-Map-Editor
 public bool Equals(RectF p)
 {
     return MatchFields(this, p);
 }
コード例 #2
0
ファイル: RectF.cs プロジェクト: Dazmo/Terraria-Map-Editor
 private static bool MatchFields(RectF a, RectF m)
 {
     return (a.TopLeft == m.TopLeft && a.BottomRight == m.BottomRight);
 }
コード例 #3
0
ファイル: RectF.cs プロジェクト: Dazmo/Terraria-Map-Editor
 public RectF(RectF rect)
 {
     _topLeft = new PointFloat(rect.TopLeft);
     _bottomRight = new PointFloat(rect.BottomRight);
 }