Changeset 4640 in josm


Ignore:
Timestamp:
08.12.2011 00:55:17 (6 months 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.