コード例 #1
0
ファイル: Index2.cs プロジェクト: wert007/StealthyGame
 public static bool Intersects(this Index2 index, Rectangle rect) => rect.Intersects(index);
コード例 #2
0
ファイル: Index3.cs プロジェクト: wert007/StealthyGame
 public Index3(Index2 pos) : this(pos, 0)
 {
 }
コード例 #3
0
ファイル: Index2.cs プロジェクト: wert007/StealthyGame
 public static bool Intersects(this Rectangle rect, Index2 index) => rect.Intersects(new Rectangle(index.X, index.Y, 1, 1));
コード例 #4
0
ファイル: Index3.cs プロジェクト: wert007/StealthyGame
 public Index3(Index2 pos, int z) : this(pos.X, pos.Y, z)
 {
 }