public double distance ( final Coordinate c ) { final double dx = getX ( ) - c . getX ( ) ; final double dy = getY ( ) - c . getY ( ) ; return Math . sqrt ( dx * dx + dy * dy ) ; }
Computes the 2 - dimensional Euclidean distance to another location . The Z - ordinate is ignored .