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/gui/util/RotationAngle.java

    r11893 r12131  
    153153            case "ne":
    154154            case "northeast":
    155                 return Math.toRadians(45);
     155                return Utils.toRadians(45);
    156156            case "e":
    157157            case "east":
    158                 return Math.toRadians(90);
     158                return Utils.toRadians(90);
    159159            case "se":
    160160            case "southeast":
    161                 return Math.toRadians(135);
     161                return Utils.toRadians(135);
    162162            case "s":
    163163            case "south":
     
    165165            case "sw":
    166166            case "southwest":
    167                 return Math.toRadians(225);
     167                return Utils.toRadians(225);
    168168            case "w":
    169169            case "west":
    170                 return Math.toRadians(270);
     170                return Utils.toRadians(270);
    171171            case "nw":
    172172            case "northwest":
    173                 return Math.toRadians(315);
     173                return Utils.toRadians(315);
    174174            default:
    175175                throw new IllegalArgumentException("Unexpected cardinal direction " + cardinal);
Note: See TracChangeset for help on using the changeset viewer.