diff options
author | Andreas.Eversberg <jolly@eversberg.eu> | 2010-10-24 14:12:58 +0000 |
---|---|---|
committer | Andreas.Eversberg <jolly@eversberg.eu> | 2010-10-24 14:12:58 +0000 |
commit | a8ac4bb2dffe2dfe8030ad9f34ec10a4f9684d54 (patch) | |
tree | d384bb6d5a3b626f60d26ea452790b0ea7454801 /src/host/gsmmap/geo.h | |
parent | 462015a91e3e64d41fedf91aec71c50cacf8e14c (diff) |
Introducing "gsmmap" to convert SYSTEM INFORMATION log into a KML map
Diffstat (limited to 'src/host/gsmmap/geo.h')
-rw-r--r-- | src/host/gsmmap/geo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/host/gsmmap/geo.h b/src/host/gsmmap/geo.h new file mode 100644 index 00000000..25e26cba --- /dev/null +++ b/src/host/gsmmap/geo.h @@ -0,0 +1,12 @@ +/* WGS 84 */ +#define EQUATOR_RADIUS 6378137.0 +#define POLE_RADIUS 6356752.314 + +#define PI 3.1415926536 + +void geo2space(double *x, double *y, double *z, double lat, double lon); +void space2geo(double *lat, double *lon, double x, double y, double z); +double distinspace(double x1, double y1, double z1, double x2, double y2, + double z2); +double distonplane(double x1, double y1, double x2, double y2); + |