Ignore:
Timestamp:
2017-04-28T12:16:33+02:00 (7 years ago)
Author:
bastiK
Message:

see #11889 - backport improved version of Math.toDegrees and Math.toRadians from Java 9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/SevenParameterDatum.java

    r10621 r12013  
    44import org.openstreetmap.josm.data.coor.LatLon;
    55import org.openstreetmap.josm.data.projection.Ellipsoid;
     6import org.openstreetmap.josm.tools.Utils;
    67
    78/**
     
    3940        this.dy = dy;
    4041        this.dz = dz;
    41         this.rx = Math.toRadians(rx / 3600);
    42         this.ry = Math.toRadians(ry / 3600);
    43         this.rz = Math.toRadians(rz / 3600);
     42        this.rx = Utils.toRadians(rx / 3600);
     43        this.ry = Utils.toRadians(ry / 3600);
     44        this.rz = Utils.toRadians(rz / 3600);
    4445        this.s = s / 1e6;
    4546    }
Note: See TracChangeset for help on using the changeset viewer.