Changeset 16294 in osm for applications/editors/josm/plugins/measurement/src
- Timestamp:
- 2009-07-03T23:35:00+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java
r15953 r16294 75 75 Point l = null; 76 76 for(WayPoint p:points){ 77 LatLon c = p.latlon; 78 Point pnt = Main.map.mapView.getPoint(Main.proj.latlon2eastNorth(c)); 77 Point pnt = Main.map.mapView.getPoint(p.getCoor()); 79 78 if (l != null){ 80 79 g.drawLine(l.x, l.y, pnt.x, pnt.y); … … 196 195 197 196 public static double calcDistance(WayPoint p1, WayPoint p2){ 198 return calcDistance(p1. latlon, p2.latlon);197 return calcDistance(p1.getCoor(), p2.getCoor()); 199 198 } 200 199 201 200 public static double angleBetween(WayPoint p1, WayPoint p2){ 202 return angleBetween(p1. latlon, p2.latlon);201 return angleBetween(p1.getCoor(), p2.getCoor()); 203 202 } 204 203
Note:
See TracChangeset
for help on using the changeset viewer.