29 static void adjust_lat(
double *);
30 static void adjust_lon(
double *);
41 double sin21, tan1, tan2;
66 sin21 = sin(lon2 - lon1);
70 st->A = (tan2 * cos(lon1) - tan1 * cos(lon2)) / sin21;
71 st->B = (tan2 * sin(lon1) - tan1 * sin(lon2)) / sin21;
83 return Degrees(atan(
st->A * sin(lon) -
st->B * cos(lon)));
86 static void adjust_lon(
double *lon)
94 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)