Changeset 6669 in josm for trunk/src/org
- Timestamp:
- 2014-01-10T22:55:29+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r6380 r6669 91 91 92 92 /** 93 * Replies true if east and north are different from Double.NaN 93 * Replies true if east and north are different from Double.NaN and not inifinite 94 94 * 95 * @return true if east and north are different from Double.NaN 95 * @return true if east and north are different from Double.NaN and not inifinite 96 96 */ 97 97 public boolean isValid() { 98 return ! java.lang.Double.isNaN(x) && !java.lang.Double.isNaN(y);98 return !Double.isNaN(x) && !Double.isNaN(y) && !Double.isInfinite(x) && !Double.isInfinite(y); 99 99 } 100 100
Note:
See TracChangeset
for help on using the changeset viewer.