11 # pragma warning (disable: 4996) 24 double a = 6378137,
f = 1/298.257223563;
32 while (scanf(
"%lf %lf", &lat, &lon) == 2)
35 printf(
"%d %.8f %.3f\n", n, P, A);
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
void geod_polygon_addpoint(const struct geod_geodesic *g, struct geod_polygon *p, double lat, double lon)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
void geod_polygon_init(struct geod_polygon *p, int polylinep)
unsigned geod_polygon_compute(const struct geod_geodesic *g, const struct geod_polygon *p, int reverse, int sign, double *pA, double *pP)
void geod_init(struct geod_geodesic *g, double a, double f)
API for the geodesic routines in C.