Ignore:
Timestamp:
2017-05-13T01:12:44+02:00 (7 years ago)
Author:
Don-vip
Message:

see #11889, see #11924, see #13387 - use backported versions of Math.toDegrees/toRadians (more accurate and faster) - to revert when migrating to Java 9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r11747 r12131  
    13171317                }
    13181318
    1319                 double radian = Math.toRadians(angle);
     1319                double radian = Utils.toRadians(angle);
    13201320
    13211321                new ImageIcon(img); // load completely
     
    13461346
    13471347                // rotate the graphics about the center point of the icon
    1348                 g2d.rotate(Math.toRadians(originalAngle));
     1348                g2d.rotate(Utils.toRadians(originalAngle));
    13491349
    13501350                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
Note: See TracChangeset for help on using the changeset viewer.