Changeset 12015 in josm
- Timestamp:
- 2017-04-28T19:49:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r12013 r12015 93 93 private static final String[] SIZE_UNITS = {"B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}; 94 94 95 // Constants backported from Java 9, see https://bugs.openjdk.java.net/browse/JDK-4477961 95 96 private static final double TO_DEGREES = 180.0 / Math.PI; 96 97 private static final double TO_RADIANS = Math.PI / 180.0; … … 1562 1563 * version of that method. (Can be removed when JOSM support for Java 8 ends.) 1563 1564 * Only relevant in relation to ProjectionRegressionTest. 1564 * @see https://josm.openstreetmap.de/ticket/118891565 1565 * @param angleRad an angle in radians 1566 1566 * @return the same angle in degrees 1567 * @see <a href="https://josm.openstreetmap.de/ticket/11889">#11889</a> 1568 * @since 12013 1567 1569 */ 1568 1570 public static double toDegrees(double angleRad) { … … 1576 1578 * version of that method. (Can be removed when JOSM support for Java 8 ends.) 1577 1579 * Only relevant in relation to ProjectionRegressionTest. 1578 * @see https://josm.openstreetmap.de/ticket/118891579 1580 * @param angleDeg an angle in degrees 1580 1581 * @return the same angle in radians 1582 * @see <a href="https://josm.openstreetmap.de/ticket/11889">#11889</a> 1583 * @since 12013 1581 1584 */ 1582 1585 public static double toRadians(double angleDeg) {
Note:
See TracChangeset
for help on using the changeset viewer.