Ignore:
Timestamp:
2013-10-18T11:30:13+02:00 (11 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/seamap/Lights.java

    r29787 r30025  
    1717
    1818        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();
    2121                return new Point2D.Double(origin.getX() - (radius * mile * Math.sin(angle)), origin.getY() - (radius * mile * Math.cos(angle)));
    2222        }
Note: See TracChangeset for help on using the changeset viewer.