Skip to content
Snippets Groups Projects
QGCGeo.h 626 B
Newer Older
  • Learn to ignore specific revisions
  • LM's avatar
    LM committed
    #ifndef QGCGEO_H
    #define QGCGEO_H
    
    
    #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
    /**
     * 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
     */
    
    //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
    
    
    LM's avatar
    LM committed
    
    #endif // QGCGEO_H