public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double fromLat = Math.toRadians(latLon.getLatitude()); double theta = computeTheta(latLon.getLongitude()); double rho = 0.0; if (Math.abs(Math.abs(fromLat) - MapMath.HALFPI) >= TOL) { double term; if (isSpherical) term = Math.pow(Math.tan(MapMath.QUARTERPI + .5 * fromLat), -n); else term = Math.pow(MapMath.tsfn(fromLat, Math.sin(fromLat), e), n); rho = c * term; } double toX = (rho * Math.sin(theta)); double toY = (rho0 - rho * Math.cos(theta)); result.setLocation(totalScale * toX + falseEasting, totalScale * toY + falseNorthing); return result; }
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double fromLat = Math.toRadians(latLon.getLatitude()); double theta = computeTheta(latLon.getLongitude()); double rho = 0.0; if (Math.abs(Math.abs(fromLat) - MapMath.HALFPI) >= TOL) { double term; if (isSpherical) term = Math.pow(Math.tan(MapMath.QUARTERPI + .5 * fromLat), -n); else term = Math.pow(MapMath.tsfn(fromLat, Math.sin(fromLat), e), n); rho = c * term; } double toX = (rho * Math.sin(theta)); double toY = (rho0 - rho * Math.cos(theta)); result.setLocation(totalScale * toX + falseEasting, totalScale * toY + falseNorthing); return result; }
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double fromLat = Math.toRadians(latLon.getLatitude()); double theta = computeTheta(latLon.getLongitude()); double rho = 0.0; if (Math.abs(Math.abs(fromLat) - MapMath.HALFPI) >= TOL) { double term; if (isSpherical) term = Math.pow(Math.tan(MapMath.QUARTERPI + .5 * fromLat), -n); else term = Math.pow(MapMath.tsfn(fromLat, Math.sin(fromLat), e), n); rho = c * term; } double toX = (rho * Math.sin(theta)); double toY = (rho0 - rho * Math.cos(theta)); result.setLocation(totalScale * toX + falseEasting, totalScale * toY + falseNorthing); return result; }
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) { double fromLat = Math.toRadians(latLon.getLatitude()); double theta = computeTheta(latLon.getLongitude()); double rho = 0.0; if (Math.abs(Math.abs(fromLat) - MapMath.HALFPI) >= TOL) { double term; if (isSpherical) term = Math.pow(Math.tan(MapMath.QUARTERPI + .5 * fromLat), -n); else term = Math.pow(MapMath.tsfn(fromLat, Math.sin(fromLat), e), n); rho = c * term; } double toX = (rho * Math.sin(theta)); double toY = (rho0 - rho * Math.cos(theta)); result.setLocation(totalScale * toX + falseEasting, totalScale * toY + falseNorthing); return result; }
else { akm1 = Math.cos(trueScaleLatitude) / MapMath.tsfn(trueScaleLatitude, t = Math.sin(trueScaleLatitude), e); t *= e; akm1 /= Math.sqrt(1. - t * t);
else { akm1 = Math.cos(trueScaleLatitude) / MapMath.tsfn(trueScaleLatitude, t = Math.sin(trueScaleLatitude), e); t *= e; akm1 /= Math.sqrt(1. - t * t);
else { akm1 = Math.cos(trueScaleLatitude) / MapMath.tsfn(trueScaleLatitude, t = Math.sin(trueScaleLatitude), e); t *= e; akm1 /= Math.sqrt(1. - t * t);
else { akm1 = Math.cos(trueScaleLatitude) / MapMath.tsfn(trueScaleLatitude, t = Math.sin(trueScaleLatitude), e); t *= e; akm1 /= Math.sqrt(1. - t * t);
sinphi = -sinphi; case NORTH_POLE: xy.x = akm1 * MapMath.tsfn(phi, sinphi, e); xy.y = - xy.x * coslam; break;
sinphi = -sinphi; case NORTH_POLE: xy.x = akm1 * MapMath.tsfn(phi, sinphi, e); xy.y = -xy.x * coslam; break;
x = akm1 * MapMath.tsfn(phi, sinphi, e); y = -x * coslam; xy.setLocation(x, y);
x = akm1 * MapMath.tsfn(phi, sinphi, e); y = -x * coslam; xy.setLocation(x, y);