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