29 #ifndef MEASURES_SOLARPOS_H 
   30 #define MEASURES_SOLARPOS_H 
Int lres
To be able to use references in simple calculations, results are calculated in a circular buffer...
 
void init()
Re-initialise SolarPos object. 
 
void refresh()
Refresh calculations. 
 
void fill()
Fill an empty copy. 
 
const MVPosition & baryEarthDerivative(Double epoch)
 
static const Double INTV
Interval to be used for linear approximation (in days) 
 
Double deval[3]
Cached derivatives. 
 
void calcEarth(Double t)
Calculate heliocentric Earth position for time t. 
 
const MVPosition & operator()(Double epoch)
Operator () calculates the geocentric Solar Position in AU. 
 
SolarPosTypes method
Method to be used. 
 
const MVPosition & barySunDerivative(Double epoch)
 
void calcSun(Double t)
Calculate heliocentric barycentre position. 
 
const MVPosition & baryEarth(Double epoch)
Barycentric position of Earth. 
 
static uInt usejpl_reg
JPL use. 
 
const MVPosition & barySun(Double epoch)
Barycentric position of Sun. 
 
Double checkEpoch
Check epoch for linear approximation. 
 
Double eval[3]
Cached calculated Earth positions. 
 
Double sval[3]
Cached calculated Sun positions. 
 
Double dsval[3]
Cached derivatives. 
 
static uInt interval_reg
Interpolation interval. 
 
SolarPosTypes
Types of known SolarPos calculations (at 1995/09/04 STANDARD == IAU1980) 
 
SolarPos()
Default constructor, generates default J2000 SolarPos identification. 
 
const MVPosition & derivative(Double epoch)
Return derivatives of SolarPos (d-1) 
 
Solar position class and calculations. 
 
void copy(const SolarPos &other)
Copy. 
 
SolarPos & operator=(const SolarPos &other)
Copy assignment. 
 
MVPosition result[6]
Last calculation.