Navit SVN

/work/compile/navit/src/navit/tools/gpx2navit_txt/src/geodesic.h

00001 
00020 #ifndef lint
00021 /*static char GEODESIC_H_ID[] = "@(#)geodesic.h 4.3     95/08/19        GIE     REL"; */
00022 #endif
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 #ifndef _IN_GEOD_SET
00029 #  define GEOD_EXTERN extern
00030 #else
00031 #  define GEOD_EXTERN
00032 #endif
00033 
00034 GEOD_EXTERN struct geodesic {
00035         double  A;
00036         double  LAM1, PHI1, ALPHA12;
00037         double  LAM2, PHI2, ALPHA21;
00038         double  DIST;
00039         double  ONEF, FLAT, FLAT2, FLAT4, FLAT64;
00040         int     ELLIPSE;
00041 } GEODESIC;
00042 
00043 # define geod_a GEODESIC.A
00044 # define lam1   GEODESIC.LAM1
00045 # define phi1   GEODESIC.PHI1
00046 # define al12   GEODESIC.ALPHA12
00047 # define lam2   GEODESIC.LAM2
00048 # define phi2   GEODESIC.PHI2
00049 # define al21   GEODESIC.ALPHA21
00050 # define geod_S GEODESIC.DIST
00051 # define geod_f GEODESIC.FLAT
00052 # define onef   GEODESIC.ONEF
00053 # define f2     GEODESIC.FLAT2
00054 # define f4     GEODESIC.FLAT4
00055 # define ff2    GEODESIC.FLAT4
00056 # define f64    GEODESIC.FLAT64
00057 # define ellipse GEODESIC.ELLIPSE
00058 
00059     
00060 GEOD_EXTERN int n_alpha, n_S;
00061 GEOD_EXTERN double to_meter, fr_meter, del_alpha;
00062         
00063 void geod_set(int, char **);
00064 void geod_for(void);
00065 void geod_pre(void);
00066 void geod_inv(void);
00067 
00068 #ifdef __cplusplus
00069 }
00070 #endif