public static double DirectDistanceBetween(XYPoint first, XYPoint second) { return(first.DirectDistanceFrom(second)); }
public int DistanceFrom(XYPoint other) { return(Math.Abs(X - other.X) + Math.Abs(Y - other.Y)); }
public double DirectDistanceFrom(XYPoint other) { return(Math.Sqrt(Math.Pow(X - other.X, 2) + Math.Pow(Y - other.Y, 2))); }
public virtual bool Equals(XYPoint other) { return(base.Equals(other)); }