Index: /trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java	(revision 6164)
+++ /trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java	(revision 6165)
@@ -14,5 +14,5 @@
  * EastNorth.
  *
- * @author imi
+ * @since 6162
  */
 abstract class Coordinate implements Serializable {
@@ -37,4 +37,16 @@
     public double getY() {
         return y;
+    }
+
+    /**
+     * Returns the square of the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}.
+     * 
+     * @param coor the specified coordinate to be measured against this {@code Coordinate}
+     * @return the square of the euclidean distance from this {@code Coordinate} to a specified {@code Coordinate}
+     */
+    public double distanceSq(final Coordinate coor) {
+        final double dx = this.x-coor.x;
+        final double dy = this.y-coor.y;
+        return dx*dx + dy*dy;
     }
 
Index: /trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java	(revision 6164)
+++ /trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java	(revision 6165)
@@ -54,16 +54,4 @@
         final double dy = this.y-en2.y;
         return Math.sqrt(dx*dx + dy*dy);
-    }
-
-    /**
-     * Counts square of euclidean distance between this and other EastNorth.
-     * 
-     * @param en2 other EastNorth
-     * @return square of distance between this and other EastNorth
-     */
-    public double distanceSq(final EastNorth en2) {
-        final double dx = this.x-en2.x;
-        final double dy = this.y-en2.y;
-        return dx*dx + dy*dy;
     }
 
