Changeset 9428 in josm for trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
- Timestamp:
- 2016-01-13T02:02:36+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
r9419 r9428 53 53 54 54 /** 55 * Ellipsoid excentricity, equals to <code>sqrt({@link #e xcentricitySquared})</code>.55 * Ellipsoid excentricity, equals to <code>sqrt({@link #e2 excentricity squared})</code>. 56 56 * Value 0 means that the ellipsoid is spherical. 57 57 * 58 * @see #e xcentricitySquared58 * @see #e2 59 59 */ 60 60 protected double e; … … 65 65 * <var>a</var> is the semi major axis length and 66 66 * <var>b</var> is the semi minor axis length. 67 * 68 * @see #e 67 69 */ 68 70 protected double e2; … … 147 149 * Computes function <code>f(s,c,e²) = c/sqrt(1 - s²×e²)</code> needed for the true scale 148 150 * latitude (Snyder 14-15), where <var>s</var> and <var>c</var> are the sine and cosine of 149 * the true scale latitude, and <var>e²</var> is the {@linkplain #excentricitySquared 150 * eccentricity squared}. 151 * the true scale latitude, and <var>e²</var> is the {@linkplain #e2 eccentricity squared}. 152 * @param s sine of the true scale latitude 153 * @param c cosine of the true scale latitude 154 * @return <code>c/sqrt(1 - s²×e²)</code> 151 155 */ 152 156 final double msfn(final double s, final double c) { … … 160 164 final double tsfn(final double lat, double sinlat) { 161 165 sinlat *= e; 162 /* 163 * NOTE: change sign to get the equivalent of Snyder (7-7). 164 */ 166 // NOTE: change sign to get the equivalent of Snyder (7-7). 165 167 return Math.tan(0.5 * (Math.PI/2 - lat)) / Math.pow((1 - sinlat) / (1 + sinlat), 0.5*e); 166 168 }
Note:
See TracChangeset
for help on using the changeset viewer.