31 static void adjust_lat(
double *);
32 static void adjust_lon(
double *);
43 double sin21, tan1, tan2;
51 temp = lon1; lon1 = lon2; lon2 = temp;
52 temp = lat1; lat1 = lat2; lat2 = temp;
63 sin21 = sin(lon2 - lon1);
67 st->A = (tan2 * cos(lon1) - tan1 * cos(lon2)) / sin21;
68 st->B = (tan2 * sin(lon1) - tan1 * sin(lon2)) / sin21;
80 return Degrees(atan(st->A * sin(lon) - st->B * cos(lon)));
83 static void adjust_lon(
double *lon)
91 static void adjust_lat(
double *lat)
int G_begin_geodesic_equation(double lon1, double lat1, double lon2, double lat2)
double G_geodesic_lat_from_lon(double lon)