Changeset 36463 in osm for applications/editors/josm/plugins/photoadjust/src
- Timestamp:
- 2025-11-06T16:11:22+01:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustWorker.java
r36333 r36463 16 16 import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry; 17 17 import org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog; 18 import org.openstreetmap.josm.gui.util.imagery.Vector3D; 19 import org.openstreetmap.josm.tools.Utils; 18 20 19 21 /** … … 240 242 } 241 243 final LatLon mouseLL = MainApplication.getMap().mapView.getLatLon(evt.getX(), evt.getY()); 244 Vector3D viewerVector = ImageViewerDialog.getInstance().getRotation(photo); 245 double viewerAngle = viewerVector != null ? Utils.toDegrees(viewerVector.getPolarAngle()) : 0d; 242 246 // The projection doesn't matter here. 243 double direction = photoLL.bearing(mouseLL) * 360.0 / 2.0 / Math.PI; 247 double direction = photoLL.bearing(mouseLL) * 360.0 / 2.0 / Math.PI - viewerAngle; 244 248 if (direction < 0.0) { 245 249 direction += 360.0;
Note:
See TracChangeset
for help on using the changeset viewer.
