Example #1
0
 /** Return distance between this location and another */
 public double distanceTo(Location other) {
   return Math.hypot(this.x - other.x, this.y - other.y);
 }