Ignore:
Timestamp:
2011-12-08T00:55:17+01:00 (8 years ago)
Author:
Don-vip
Message:

Method to know if an EastNorth is valid (x & y != NaN)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java

    r4134 r4640  
    6060        return hd;
    6161    }
     62   
     63    /**
     64     * Replies true if east and north are different from Double.NaN
     65     *
     66     * @return true if east and north are different from Double.NaN
     67     */
     68    public boolean isValid() {
     69        return !java.lang.Double.isNaN(x) && !java.lang.Double.isNaN(y);
     70    }
    6271
    6372    public EastNorth sub(EastNorth en) {
Note: See TracChangeset for help on using the changeset viewer.