Changeset 30317 in osm for applications/editors/josm/plugins/smed2/src/render/Signals.java
- Timestamp:
- 2014-03-04T09:33:46+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/render/Signals.java
r30285 r30317 185 185 186 186 } 187 188 private static Point2D.Double radial(Snode centre, double radius, double angle) { 189 Point2D origin = Renderer.context.getPoint(centre); 190 double mile = Renderer.context.getPoint(Renderer.map.new Snode((centre.lat + Math.toRadians(1/60)), centre.lon)).getY() - origin.getY(); 191 return new Point2D.Double(origin.getX() - (radius * mile * Math.sin(angle)), origin.getY() - (radius * mile * Math.cos(angle))); 192 } 187 188 // private static Point2D.Double radial(Feature feature, Snode centre, double radius, double angle) { 189 // Point2D origin = Renderer.context.getPoint(centre); 190 // return new Point2D.Double(origin.getX() - (radius * Renderer.context.mile(feature) * Math.sin(angle)), origin.getY() - (radius * Renderer.context.mile(feature) * Math.cos(angle))); 191 // } 193 192 /* 194 193 void renderFlare(Item_t *item) {
Note:
See TracChangeset
for help on using the changeset viewer.
