256 double L1,L2,sinU1,sinU2,cosU1,cosU2;
257 double dl,dl1,dl2,dl3,cosdl1,sindl1;
258 double cosSigma,sigma,azimuthEQ,tsm;
267 L1 = atan((1.0 - sphere->
f ) * tan( lat1) );
268 L2 = atan((1.0 - sphere->
f ) * tan( lat2) );
281 cosSigma = sinU1 * sinU2 + cosU1 * cosU2 * cosdl1;
282 sigma = acos(cosSigma);
283 azimuthEQ = asin((cosU1 * cosU2 * sindl1)/sin(sigma));
289 TEMP = cosSigma - (2.0 * sinU1 * sinU2)/
290 (cos(azimuthEQ)*cos(azimuthEQ));
307 dl3 = dl1 - (dl + dl2);
313 while ( (iterations<999) && (fabs(dl3) > 1.0e-032));
316 u2 =
mu2(azimuthEQ,sphere);
321 dsigma = B * sin(sigma) * (cos(tsm) +
322 (B*cosSigma*(-1.0 + 2.0 * (cos(tsm)*cos(tsm))))/4.0);
323 return sphere->
b * (A * (sigma - dsigma));
double mu2(double azimuth, SPHEROID *sphere)
double deltaLongitude(double azimuth, double sigma, double tsm, SPHEROID *sphere)