コード例 #1
0
ファイル: Location.java プロジェクト: joshbra/simpleMaps
 /** Return distance between this location and another */
 public double distanceTo(Location other) {
   return Math.hypot(this.x - other.x, this.y - other.y);
 }