#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
/** * 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 */