Changeset 13598 in josm for trunk/src/org/openstreetmap/josm/data/projection/proj
- Timestamp:
- 2018-04-05T19:03:04+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/proj
- Files:
-
- 2 added
- 2 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) { -
trunk/src/org/openstreetmap/josm/data/projection/proj/ProjParameters.java
r9565 r13598 2 2 package org.openstreetmap.josm.data.projection.proj; 3 3 4 import org.openstreetmap.josm.data.projection.CustomProjection.Param; 4 5 import org.openstreetmap.josm.data.projection.Ellipsoid; 5 6 6 7 /** 7 8 * Parameters to initialize a Proj object. 9 * @since 5066 8 10 */ 9 11 public class ProjParameters { 10 12 13 /** {@code +ellps} */ 11 14 public Ellipsoid ellps; 12 15 16 /** {@link Param#lat_0} */ 13 17 public Double lat0; 18 /** {@link Param#lat_1} */ 14 19 public Double lat1; 20 /** {@link Param#lat_2} */ 15 21 public Double lat2; 16 22 17 23 // Polar Stereographic and Mercator 24 /** {@link Param#lat_ts} */ 18 25 public Double lat_ts; 19 26 27 // Azimuthal Equidistant 28 /** {@link Param#lon_0} */ 29 public Double lon0; 30 20 31 // Oblique Mercator 32 /** {@link Param#lonc} */ 21 33 public Double lonc; 34 /** {@link Param#alpha} */ 22 35 public Double alpha; 36 /** {@link Param#gamma} */ 23 37 public Double gamma; 38 /** {@link Param#no_off} */ 24 39 public Boolean no_off; 40 /** {@link Param#lon_1} */ 25 41 public Double lon1; 42 /** {@link Param#lon_2} */ 26 43 public Double lon2; 27 44 }
Note:
See TracChangeset
for help on using the changeset viewer.