Beispiel #1
0
 public static bool IsEquals(PointInt p1, PointInt p2) => p1.X == p2.X && p1.Y == p2.Y;
Beispiel #2
0
 public bool Equals(PointInt other) => IsEquals(this, other);
Beispiel #3
0
 public static double GetRangeBetween(PointInt p1, PointInt p2)
 {
     return(Math.Sqrt(Math.Pow(p1.X - p2.X, 2) + Math.Pow(p1.Y - p2.Y, 2)));
 }