PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Proj4/geodesic.h

http://github.com/route-me/route-me
C Header | 51 lines | 43 code | 8 blank | 0 comment | 0 complexity | ff31e01ccc33f5c3754ef507fe0514cb MD5 | raw file
 1#ifndef lint
 2static char GEODESIC_H_ID[] = "@(#)geodesic.h	4.3	95/08/19	GIE	REL";
 3#endif
 4
 5#ifdef __cplusplus
 6extern "C" {
 7#endif
 8
 9#ifndef _IN_GEOD_SET
10#  define GEOD_EXTERN extern
11#else
12#  define GEOD_EXTERN
13#endif
14
15GEOD_EXTERN struct geodesic {
16	double	A;
17	double	LAM1, PHI1, ALPHA12;
18	double	LAM2, PHI2, ALPHA21;
19	double	DIST;
20	double	ONEF, FLAT, FLAT2, FLAT4, FLAT64;
21	int	ELLIPSE;
22} GEODESIC;
23
24# define geod_a	GEODESIC.A
25# define lam1	GEODESIC.LAM1
26# define phi1	GEODESIC.PHI1
27# define al12	GEODESIC.ALPHA12
28# define lam2	GEODESIC.LAM2
29# define phi2	GEODESIC.PHI2
30# define al21	GEODESIC.ALPHA21
31# define geod_S	GEODESIC.DIST
32# define geod_f	GEODESIC.FLAT
33# define onef	GEODESIC.ONEF
34# define f2	GEODESIC.FLAT2
35# define f4	GEODESIC.FLAT4
36# define ff2	GEODESIC.FLAT4
37# define f64	GEODESIC.FLAT64
38# define ellipse GEODESIC.ELLIPSE
39
40    
41GEOD_EXTERN int n_alpha, n_S;
42GEOD_EXTERN double to_meter, fr_meter, del_alpha;
43	
44void geod_set(int, char **);
45void geod_for(void);
46void geod_pre(void);
47void geod_inv(void);
48
49#ifdef __cplusplus
50}
51#endif