- Timestamp:
- 2009-09-12T23:21:13+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r2025 r2110 734 734 LatLon mouseLatLon = mv.getProjection().eastNorth2latlon(currentMouseEastNorth); 735 735 distance = currentBaseNode.getCoor().greatCircleDistance(mouseLatLon); 736 double hdg = Math.toDegrees(currentBaseNode.getCoor().heading(mouseLatLon)); 736 737 double hdg = Math.toDegrees(currentBaseNode.getEastNorth() 738 .heading(currentMouseEastNorth)); 737 739 if (previousNode != null) { 738 angle = hdg - Math.toDegrees(previousNode.get Coor().heading(currentBaseNode.getCoor()));739 if (angle < 0) {740 angle += 360;741 742 } 740 angle = hdg - Math.toDegrees(previousNode.getEastNorth() 741 .heading(currentBaseNode.getEastNorth())); 742 angle += angle < 0 ? 360 : 0; 743 } 744 743 745 Main.map.statusLine.setAngle(angle); 744 746 Main.map.statusLine.setHeading(hdg);
Note:
See TracChangeset
for help on using the changeset viewer.