33 static void adjust_lat(
double *);
36 static void adjust_lon(
double *);
40 double TAN_A, TAN1, TAN2, L;
82 st->TAN_A = (lon2 - lon1) / (log(
st->TAN2) - log(
st->TAN1));
104 return Degrees(2 * atan(exp((lon -
st->L) /
st->TAN_A) *
st->TAN1) -
109 static void adjust_lon(
double *lon)
113 while (*lon < -180.0)
118 static void adjust_lat(
double *lat)
int G_begin_rhumbline_equation(double lon1, double lat1, double lon2, double lat2)
Start rhumbline calculations.
double G_rhumbline_lat_from_lon(double lon)
Calculates rhumbline latitude.