QGCGeo.h 626 Bytes
Newer Older
LM's avatar
LM committed
1 2 3
#ifndef QGCGEO_H
#define QGCGEO_H

4 5 6 7 8 9 10 11
#define DEG2RAD (M_PI/180.0)

/* Safeguard for systems lacking sincos (e.g. Mac OS X Leopard) */
#ifndef sincos
#define sincos(th,x,y) { (*(x))=sin(th); (*(y))=cos(th); }
#endif


LM's avatar
LM committed
12 13 14 15 16
/**
 * Converting from latitude / longitude to tangent on earth surface
 * @link http://psas.pdx.edu/CoordinateSystem/Latitude_to_LocalTangent.pdf
 * @link http://dspace.dsto.defence.gov.au/dspace/bitstream/1947/3538/1/DSTO-TN-0432.pdf
 */
17 18
//void LatLonToENU(double lat, double lon, double alt, double originLat, double originLon, double originAlt, double* x, double* y, double* z)
//{
LM's avatar
LM committed
19

20
//}
LM's avatar
LM committed
21 22

#endif // QGCGEO_H