Changeset 12131 in josm for trunk/src/org/openstreetmap/josm/gui/util/RotationAngle.java
- Timestamp:
- 2017-05-13T01:12:44+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/RotationAngle.java
r11893 r12131 153 153 case "ne": 154 154 case "northeast": 155 return Math.toRadians(45);155 return Utils.toRadians(45); 156 156 case "e": 157 157 case "east": 158 return Math.toRadians(90);158 return Utils.toRadians(90); 159 159 case "se": 160 160 case "southeast": 161 return Math.toRadians(135);161 return Utils.toRadians(135); 162 162 case "s": 163 163 case "south": … … 165 165 case "sw": 166 166 case "southwest": 167 return Math.toRadians(225);167 return Utils.toRadians(225); 168 168 case "w": 169 169 case "west": 170 return Math.toRadians(270);170 return Utils.toRadians(270); 171 171 case "nw": 172 172 case "northwest": 173 return Math.toRadians(315);173 return Utils.toRadians(315); 174 174 default: 175 175 throw new IllegalArgumentException("Unexpected cardinal direction " + cardinal);
Note:
See TracChangeset
for help on using the changeset viewer.