Changeset 35976 in osm for applications/editors/josm/plugins/measurement
- Timestamp:
- 2022-06-14T20:11:21+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r35579 r35976 209 209 } else { 210 210 length += lastNode.getCoor().greatCircleDistance(n.getCoor()); 211 segAngle = MeasurementLayer.angleBetween(lastNode .getCoor(), n.getCoor());211 segAngle = MeasurementLayer.angleBetween(lastNode, n); 212 212 lastNode = n; 213 213 } … … 235 235 wayArea += (MeasurementLayer.calcX(n.getCoor()) * MeasurementLayer.calcY(lastN.getCoor())) 236 236 - (MeasurementLayer.calcY(n.getCoor()) * MeasurementLayer.calcX(lastN.getCoor())); 237 segAngle = MeasurementLayer.angleBetween(lastN .getCoor(), n.getCoor());237 segAngle = MeasurementLayer.angleBetween(lastN, n); 238 238 } 239 239 lastN = n; -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java
r35369 r35976 2 2 package org.openstreetmap.josm.plugins.measurement; 3 3 /// @author Raphael Mack <ramack@raphael-mack.de> 4 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 … … 28 29 29 30 import org.openstreetmap.josm.data.Bounds; 31 import org.openstreetmap.josm.data.coor.ILatLon; 30 32 import org.openstreetmap.josm.data.coor.LatLon; 31 33 import org.openstreetmap.josm.data.gpx.IGpxTrack; … … 171 173 } 172 174 173 public static double angleBetween(LatLon p1, LatLon p2){ 175 public static double angleBetween(ILatLon p1, ILatLon p2){ 174 176 double lat1, lon1, lat2, lon2; 175 177 double dlon;
Note:
See TracChangeset
for help on using the changeset viewer.