Changeset 2332 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2009-10-27T18:49:09+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r2327 r2332 25 25 private static DecimalFormat cDdFormatter = new DecimalFormat("###0.0000"); 26 26 27 /** 28 * Replies true if lat is in the range [-90,90] 29 * 30 * @param lat the latitude 31 * @return true if lat is in the range [-90,90] 32 */ 33 public static boolean isValidLat(double lat) { 34 return lat >= -90d && lat <= 90d; 35 } 27 36 37 /** 38 * Replies true if lon is in the range [-180,180] 39 * 40 * @param lon the longitude 41 * @return true if lon is in the range [-180,180] 42 */ 43 public static boolean isValidLon(double lon) { 44 return lon >= -180d && lon <= 180d; 45 } 46 28 47 public static String dms(double pCoordinate) { 29 48
Note:
See TracChangeset
for help on using the changeset viewer.