public bool Equals(Coordinates2D other) { return(other.X.Equals(X) && other.Y.Equals(Y)); }
public double DistanceTo(Coordinates2D other) { return(Math.Sqrt(Square((double)other.X - (double)X) + Square((double)other.Y - (double)Y))); }
public bool Equals(Coordinates2D other) { return(other.X.Equals(X) && other.Y.Equals(Y)); }
public double DistanceTo(Coordinates2D other) { return(Math.Sqrt(Square((double)other.X - (double)X) + Square((double)other.Y - (double)Y))); }