Changeset 9243 in josm for trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
- Timestamp:
- 2016-01-01T19:51:11+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r8846 r9243 115 115 * For example, a value of -181 will return +179, a value of +181 will return -179. 116 116 * @param value A longitude value not restricted to the [-180,+180] range. 117 * @return a valid OSM longitude [-180,+180] 117 118 */ 118 119 public static double toIntervalLon(double value) { … … 237 238 238 239 /** 240 * @param other other lat/lon 239 241 * @return <code>true</code> if the other point has almost the same lat/lon 240 * values, only differing by no more than 241 * 1 / {@link #MAX_SERVER_PRECISION MAX_SERVER_PRECISION}. 242 * values, only differing by no more than 1 / {@link #MAX_SERVER_PRECISION MAX_SERVER_PRECISION}. 242 243 */ 243 244 public boolean equalsEpsilon(LatLon other) { … … 247 248 248 249 /** 249 * @return <code>true</code>, if the coordinate is outside the world, compared250 * by using lat/lon.250 * Determines if this lat/lon is outside of the world 251 * @return <code>true</code>, if the coordinate is outside the world, compared by using lat/lon. 251 252 */ 252 253 public boolean isOutSideWorld() { … … 257 258 258 259 /** 260 * Determines if this lat/lon is within the given bounding box. 261 * @param b bounding box 259 262 * @return <code>true</code> if this is within the given bounding box. 260 263 */ … … 330 333 /** 331 334 * Returns this lat/lon pair in human-readable format separated by {@code separator}. 335 * @param separator values separator 332 336 * @return String in the format {@code "1.23456[separator]2.34567"} 333 337 */ … … 376 380 377 381 /** 378 * Returns the value rounded to OSM precisions, i.e. to 379 * LatLon.MAX_SERVER_PRECISION382 * Returns the value rounded to OSM precisions, i.e. to {@link LatLon#MAX_SERVER_PRECISION}. 383 * @param value lat/lon value 380 384 * 381 385 * @return rounded value … … 388 392 * Returns the value rounded to OSM precision. This function is now the same as 389 393 * {@link #roundToOsmPrecision(double)}, since the rounding error has been fixed. 394 * @param value lat/lon value 390 395 * 391 396 * @return rounded value
Note:
See TracChangeset
for help on using the changeset viewer.