Stellarium 0.14.3
stdsat.h
1 /***************************************************************************
2  * Copyright (C) 2006 by J. L. Canales *
3  * jlcanales@users.sourceforge.net *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. *
19  ***************************************************************************/
20 
21 #ifndef _STDSAT_H_
22 #define _STDSAT_H_ 1
23 
24 static const double KINTERPOLATIONLIMIT=0.0000000000001;
25 static const double KMU=3.9861352E5;
26 static const double KPI=3.1415926535897932384626433832795;
27 static const double K2PI=6.283185307179586476925286766559;
28 static const double KEARTHRADIUS=6378.135;
29 static const double __f=3.352779E-3;
30 static const double KMFACTOR=7.292115E-5;
31 static const double KAU=1.4959787066E8; //Km
32 
33 static const double KDEG2RAD = KPI / 180.0; // 0.0174532925199433
34 static const double KRAD2DEG = 180.0 / KPI ; // 0.0174532925199433
35 static const double XPDOTP = 1440.0 / K2PI; // 229.1831180523293 minutes per radian (earth rotation)
36 
37 #endif // _STDSAT_H_