Changeset 29275 in osm for applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
- Timestamp:
- 2013-02-22T13:53:24+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
r29272 r29275 201 201 202 202 public boolean hasNext() { 203 return (edge != null) && ((it == null) || (edge.nodes.isEmpty()) || (forward && it.hasNext()) || (!forward && it.hasPrevious()));203 return (edge != null); 204 204 } 205 205 … … 253 253 254 254 public boolean hasNext() { 255 return side != null; 255 return (side != null) && ((sit.hasNext()) || (eit.hasNext())); 256 256 } 257 257 … … 502 502 llon = lon; 503 503 } 504 double frac = harc / sarc; 505 return new Snode(llat + ((lat - llat) / frac), llon + ((lon - llon) / frac)); 504 return new Snode(llat + ((lat - llat) * harc / sarc), llon + ((lon - llon) * harc / sarc)); 506 505 case AREA: 507 506 Bound bound = areas.get(feature.refs).get(0);
Note:
See TracChangeset
for help on using the changeset viewer.