Changeset 30025 in osm for applications/editors/josm/plugins/smed2/src/seamap/Lights.java
- Timestamp:
- 2013-10-18T11:30:13+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Lights.java
r29787 r30025 17 17 18 18 private static Point2D.Double radial(Snode centre, double radius, double angle) { 19 Point2D origin = Renderer. helper.getPoint(centre);20 double mile = Renderer. helper.getPoint(Renderer.map.new Snode((centre.lat + Math.toRadians(1/60)), centre.lon)).getY() - origin.getY();19 Point2D origin = Renderer.context.getPoint(centre); 20 double mile = Renderer.context.getPoint(Renderer.map.new Snode((centre.lat + Math.toRadians(1/60)), centre.lon)).getY() - origin.getY(); 21 21 return new Point2D.Double(origin.getX() - (radius * mile * Math.sin(angle)), origin.getY() - (radius * mile * Math.cos(angle))); 22 22 }
Note:
See TracChangeset
for help on using the changeset viewer.