Changeset 9428 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-13T02:02:36+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/proj
- Files:
-
- 3 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 } -
trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java
r9426 r9428 72 72 73 73 /** 74 * Standards parallel 1 in radians , for {@link #getParameterValues} implementation.74 * Standards parallel 1 in radians. 75 75 */ 76 76 private double phi1; 77 77 78 78 /** 79 * Standards parallel 2 in radians , for {@link #getParameterValues} implementation.79 * Standards parallel 2 in radians. 80 80 */ 81 81 private double phi2; -
trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java
r9426 r9428 8 8 9 9 /** 10 * The polar case of the {@linkplain Stereographic stereographic}projection.10 * The polar case of the stereographic projection. 11 11 * <p> 12 12 * In the proj.4 library, the code "stere" covers several variants of the … … 75 75 /** 76 76 * A constant used in the transformations. 77 * This is <strong>not</strong> equal to the {@link #scaleFactor}.78 77 */ 79 78 private double k0; … … 115 114 southPole = latitudeTrueScale < 0; 116 115 117 /* 118 * Computes coefficients. 119 */ 116 // Computes coefficients. 120 117 double latitudeTrueScaleAbs = Math.abs(latitudeTrueScale); 121 118 if (Math.abs(latitudeTrueScaleAbs - Math.PI/2) >= EPSILON) { … … 126 123 // True scale at pole (part of (21-33)) 127 124 k0 = 2.0 / Math.sqrt(Math.pow(1+e, 1+e)* 128 Math.pow(1-e, 1-e));125 Math.pow(1-e, 1-e)); 129 126 } 130 127 }
Note:
See TracChangeset
for help on using the changeset viewer.