Go to the documentation of this file.
34 static double lon_center;
36 static double false_easting;
37 static double false_northing;
52 lon_center = center_long;
53 false_easting = false_east;
54 false_northing = false_north;
75 fac =
R * 1.414213562 / sqrt(1.0 + cos(
lat) * cos(dlon / 2.0));
76 *
x = false_easting +
fac * 2.0 * cos(
lat) * sin(dlon / 2.0);
77 *
y = false_northing +
fac * sin(
lat);
int hamfor(double lon, double lat, double *x, double *y)
double adjust_lon(double x)
int hamforint(double r, double center_long, double false_east, double false_north)