Changeset 12169 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java
r12167 r12169 90 90 @Override 91 91 public double lon() { 92 return lon; 93 } 94 95 @Override 96 public double lat() { 92 97 return lat; 93 }94 95 @Override96 public double lat() {97 return lon;98 98 } 99 99 -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r12167 r12169 326 326 327 327 WayPoint closeToMiddle = data.nearestPointOnTrack(new EastNorth(10, 0), 10); 328 assertEquals(points.get(1).lat(), closeToMiddle.lat(), 1e-4); 329 assertEquals(points.get(1).lon(), closeToMiddle.lon(), 1e-4); 328 assertEquals(points.get(1), closeToMiddle); 330 329 331 330 WayPoint close = data.nearestPointOnTrack(new EastNorth(5, 5), 10); 331 assertEquals(10, close.getEastNorth().east(), .01); 332 assertEquals(5, close.getEastNorth().north(), .01); 333 334 close = data.nearestPointOnTrack(new EastNorth(15, 5), 10); 332 335 assertEquals(10, close.getEastNorth().east(), .01); 333 336 assertEquals(5, close.getEastNorth().north(), .01);
Note:
See TracChangeset
for help on using the changeset viewer.