distance3D method
Computes the 3-dimensional Euclidean distance to another location.
@param c a coordinate @return the 3-dimensional Euclidean distance between the locations
Implementation
double distance3D(Coordinate c) {
double dx = x - c.x;
double dy = y - c.y;
double dz = getZ() - c.getZ();
return math.sqrt(dx * dx + dy * dy + dz * dz);
}