Beispiel #1
0
 public bool Equals(Coordinates3D other)
 {
     return other.X.Equals(X) && other.Y.Equals(Y) && other.Z.Equals(Z);
 }
Beispiel #2
0
 public double DistanceTo(Coordinates3D other)
 {
     return Math.Sqrt(Square((double)other.X - (double)X) +
                      Square((double)other.Y - (double)Y) +
                      Square((double)other.Z - (double)Z));
 }