Changeset 12131 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2017-05-13T01:12:44+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r12103 r12131 76 76 private static final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(), Color.ORANGE.getGreen(), Color.ORANGE.getBlue(), 128); 77 77 78 private static final ArrowPaintHelper START_WAY_INDICATOR = new ArrowPaintHelper( Math.toRadians(90), 8);78 private static final ArrowPaintHelper START_WAY_INDICATOR = new ArrowPaintHelper(Utils.toRadians(90), 8); 79 79 80 80 static final CachingProperty<Boolean> USE_REPEATED_SHORTCUT … … 839 839 840 840 841 double curHdg = Math.toDegrees(getCurrentBaseNode().getEastNorth()841 double curHdg = Utils.toDegrees(getCurrentBaseNode().getEastNorth() 842 842 .heading(currentMouseEastNorth)); 843 843 double baseHdg = -1; … … 845 845 EastNorth en = previousNode.getEastNorth(); 846 846 if (en != null) { 847 baseHdg = Math.toDegrees(en.heading(getCurrentBaseNode().getEastNorth()));847 baseHdg = Utils.toDegrees(en.heading(getCurrentBaseNode().getEastNorth())); 848 848 } 849 849 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawSnapHelper.java
r11747 r12131 30 30 import org.openstreetmap.josm.gui.draw.SymbolShape; 31 31 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 32 import org.openstreetmap.josm.tools.Utils; 32 33 33 34 class DrawSnapHelper { … … 377 378 LatLon mouseLatLon = Main.map.mapView.getProjection().eastNorth2latlon(snapPoint); 378 379 double distance = this.drawAction.getCurrentBaseNode().getCoor().greatCircleDistance(mouseLatLon); 379 double hdg = Math.toDegrees(p0.heading(snapPoint));380 double hdg = Utils.toDegrees(p0.heading(snapPoint)); 380 381 // heading of segment from current to calculated point, not to mouse position 381 382 … … 485 486 486 487 double hdg = segmentPoint1.heading(segmentPoint2); 487 hdg = Math.toDegrees(hdg);488 hdg = Utils.toDegrees(hdg); 488 489 if (hdg < 0) { 489 490 hdg += 360;
Note:
See TracChangeset
for help on using the changeset viewer.