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