/** x1 * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double deltaLon = LatLonPointImpl.range180(latLon.getLongitude() - centMeridian); double fromLat_r = Math.toRadians(latLon.getLatitude()); double toX = earthRadius * Math.toRadians(deltaLon) * Math.cos(fromLat_r); double toY = earthRadius * fromLat_r; // p 247 Snyder result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ @Override public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double deltaLon_d = LatLonPointImpl.range180(latLon.getLongitude() - centMeridian); double fromLat_r = Math.toRadians(latLon.getLatitude()); double toX = earthRadius * Math.toRadians(deltaLon_d) * Math.cos(fromLat_r); double toY = earthRadius * fromLat_r; // p 247 Snyder result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ @Override public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double deltaLon_d = LatLonPointImpl.range180(latLon.getLongitude() - centMeridian); double fromLat_r = Math.toRadians(latLon.getLatitude()); double toX = earthRadius * Math.toRadians(deltaLon_d) * Math.cos(fromLat_r); double toY = earthRadius * fromLat_r; // p 247 Snyder result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ @Override public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double toX, toY; double fromLat = latLon.getLatitude(); double fromLon = latLon.getLongitude(); double fromLat_r = Math.toRadians(fromLat); // infinite projection if ((Math.abs(90.0 - Math.abs(fromLat))) < TOLERANCE) { toX = Double.POSITIVE_INFINITY; toY = Double.POSITIVE_INFINITY; } else { toX = A * Math.toRadians(LatLonPointImpl.range180(fromLon - this.lon0)); toY = A * SpecialMathFunction.atanh(Math.sin(fromLat_r)); // p 41 Snyder } result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
rotY[2][0] * p1[0] + rotY[2][1] * p1[1] + rotY[2][2] * p1[2]}; final double lonR = LatLonPointImpl.range180( Math.atan2(p2[1], p2[0]) * DEG_PER_RAD);
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ @Override public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double toX, toY; double fromLat = latLon.getLatitude(); double fromLon = latLon.getLongitude(); double fromLat_r = Math.toRadians(fromLat); // infinite projection if ((Math.abs(90.0 - Math.abs(fromLat))) < TOLERANCE) { toX = Double.POSITIVE_INFINITY; toY = Double.POSITIVE_INFINITY; } else { toX = A * Math.toRadians(LatLonPointImpl.range180(fromLon - this.lon0)); toY = A * SpecialMathFunction.atanh(Math.sin(fromLat_r)); // p 41 Snyder } result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double toX, toY; double fromLat = latLon.getLatitude(); double fromLon = latLon.getLongitude(); double fromLat_r = Math.toRadians(fromLat); // infinite projection if ((Math.abs(90.0 - Math.abs(fromLat))) < TOLERANCE) { toX = Double.POSITIVE_INFINITY; toY = Double.POSITIVE_INFINITY; } else { toX = A * Math.toRadians(LatLonPointImpl.range180(fromLon - this.lon0)); toY = A * SpecialMathFunction.atanh(Math.sin(fromLat_r)); // p 41 Snyder } result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
final double lonR = LatLonPointImpl.range180( ppt.getX()); // LOOK guessing final double latR = ppt.getY();
/** * Convert a LatLonPoint to projection coordinates * * @param latLon convert from these lat, lon coordinates * @param result the object to write to * @return the given result */ public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double toX, toY; double fromLat = latLon.getLatitude(); double fromLon = latLon.getLongitude(); double fromLat_r = Math.toRadians(fromLat); // infinite projection if ((Math.abs(90.0 - Math.abs(fromLat))) < TOLERANCE) { toX = Double.POSITIVE_INFINITY; toY = Double.POSITIVE_INFINITY; } else { toX = A * Math.toRadians(LatLonPointImpl.range180(fromLon - this.lon0)); toY = A * SpecialMathFunction.atanh(Math.sin(fromLat_r)); // p 41 Snyder } result.setLocation(toX + falseEasting, toY + falseNorthing); return result; }
rotY[2][0] * p1[0] + rotY[2][1] * p1[1] + rotY[2][2] * p1[2]}; final double lonR = LatLonPointImpl.range180( Math.atan2(p2[1], p2[0]) * DEG_PER_RAD);
rotY[2][0] * p1[0] + rotY[2][1] * p1[1] + rotY[2][2] * p1[2]}; final double lonR = LatLonPointImpl.range180( Math.atan2(p2[1], p2[0]) * DEG_PER_RAD);
final double lonR = LatLonPointImpl.range180( ppt.getX()); // LOOK guessing final double latR = ppt.getY();
rotY[2][0] * p1[0] + rotY[2][1] * p1[1] + rotY[2][2] * p1[2]}; final double lonR = LatLonPointImpl.range180( Math.atan2(p2[1], p2[0]) * DEG_PER_RAD);
final double lonR = LatLonPointImpl.range180( ppt.getX()); // LOOK guessing final double latR = ppt.getY();
final double lonR = LatLonPointImpl.range180( ppt.getX()); // LOOK guessing final double latR = ppt.getY();