Changeset 13598 in josm for trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
- Timestamp:
- 2018-04-05T19:03:04+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
r10748 r13598 155 155 } 156 156 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 157 170 // Iteratively solve equation (7-9) from Snyder. 158 171 final double cphi2(final double ts) {
Note:
See TracChangeset
for help on using the changeset viewer.