Changeset 1636 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2009-06-06T13:38:32+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1545 r1636 801 801 // (for semi-parallel lines, intersection might be miles away!) 802 802 if (Main.map.mapView.getPoint(n.eastNorth).distance(Main.map.mapView.getPoint(intersection)) < snapToIntersectionThreshold) { 803 n. eastNorth = intersection;803 n.setEastNorth(intersection); 804 804 return; 805 805 } … … 814 814 double c = A.distanceSq(B); 815 815 q = (a - b + c) / (2*c); 816 n.eastNorth = new EastNorth( 817 B.east() + q * (A.east() - B.east()), 818 B.north() + q * (A.north() - B.north())); 816 n.setEastNorth(B.east() + q * (A.east() - B.east()), B.north() + q * (A.north() - B.north())); 819 817 } 820 818 }
Note:
See TracChangeset
for help on using the changeset viewer.