Changeset 8365 in josm for trunk/src/org/openstreetmap/josm/data/osm/NodeData.java
- Timestamp:
- 2015-05-16T15:13:38+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/NodeData.java
r6890 r8365 15 15 private double lon = Double.NaN; 16 16 17 public NodeData() {} 17 /** 18 * Constructs a new {@code NodeData}. 19 */ 20 public NodeData() { 18 21 22 } 23 24 /** 25 * Constructs a new {@code NodeData}. 26 * @param data node data to copy 27 */ 19 28 public NodeData(NodeData data) { 20 29 super(data); … … 44 53 @Override 45 54 public EastNorth getEastNorth() { 46 /* 47 * No internal caching of projected coordinates needed. In contrast to getEastNorth() 48 * on Node, this method is rarely used. Caching would be overkill. 49 */ 55 // No internal caching of projected coordinates needed. In contrast to getEastNorth() 56 // on Node, this method is rarely used. Caching would be overkill. 50 57 return Projections.project(getCoor()); 51 58 } … … 53 60 @Override 54 61 public void setEastNorth(EastNorth eastNorth) { 55 LatLon ll = Projections.inverseProject(eastNorth); 56 setCoor(ll); 62 setCoor(Projections.inverseProject(eastNorth)); 57 63 } 58 64 … … 76 82 visitor.visit(this); 77 83 } 78 79 84 }
Note:
See TracChangeset
for help on using the changeset viewer.
