Ignore:
Timestamp:
2018-04-05T19:03:04+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16129 - add new projections and support for new format of ESRI file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java

    r10748 r13598  
    155155    }
    156156
     157    /**
     158     * Tolerant asin that will just return the limits of its output range if the input is out of range
     159     * @param v the value whose arc sine is to be returned.
     160     * @return the arc sine of the argument.
     161     */
     162    protected final double aasin(double v) {
     163        double av = Math.abs(v);
     164        if (av >= 1.) {
     165            return (v < 0. ? -Math.PI / 2 : Math.PI / 2);
     166        }
     167        return Math.asin(v);
     168    }
     169
    157170    // Iteratively solve equation (7-9) from Snyder.
    158171    final double cphi2(final double ts) {
Note: See TracChangeset for help on using the changeset viewer.