10#include "cachingdms.h"
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wignored-attributes"
17#pragma GCC diagnostic ignored "-Wint-in-bool-context"
21#pragma GCC diagnostic pop
81 inline double dObliq()
const {
return deltaObliquity; }
85 inline double dEcLong()
const {
return deltaEcLong; }
91 inline long double julianDay()
const {
return days; }
97 inline double p1(
int i1,
int i2)
const {
return P1(i1, i2); }
100 inline double p2(
int i1,
int i2)
const {
return P2(i1, i2); }
103 inline double p1b(
int i1,
int i2)
const {
return P1B(i1, i2); }
106 inline double p2b(
int i1,
int i2)
const {
return P2B(i1, i2); }
109 inline const Eigen::Matrix3d &
p2()
const {
return P1; }
110 inline const Eigen::Matrix3d &p1()
const {
return P2; }
111 inline const Eigen::Matrix3d &
p1b()
const {
return P1B; }
112 inline const Eigen::Matrix3d &
p2b()
const {
return P2B; }
128 inline long double getJD()
const {
return days; }
130 inline double vEarth(
int i)
const {
return vearth[i]; }
134 dms K, L, LM, M, M0, O, D, MM, F;
135 dms XP, YP, ZP, XB, YB, ZB;
136 double CX, SX, CY, SY, CZ, SZ;
137 double CXB, SXB, CYB, SYB, CZB, SZB;
138 Eigen::Matrix3d P1, P2, P1B, P2B;
139 double deltaObliquity, deltaEcLong;
143 static const int arguments[NUTTERMS][5];
144 static const int amp[NUTTERMS][4];
a dms subclass that caches its sine and cosine values every time the angle is changed.
There are several time-dependent values used in position calculations, that are not specific to an ob...
double p1(int i1, int i2) const
dms sunTrueAnomaly() const
double p1b(int i1, int i2) const
CachingDms earthPerihelionLongitude() const
const Eigen::Matrix3d & p2() const
dms sunMeanLongitude() const
CachingDms sunTrueLongitude() const
void updateValues(long double jd)
update all values for the date given as an argument.
const CachingDms * obliquity() const
long double getJD() const
double julianMillenia() const
KSNumbers(long double jd)
Constructor.
void computeConstantValues()
compute constant values that need to be computed only once per instance of the application
dms sunMeanAnomaly() const
double julianCenturies() const
double p2(int i1, int i2) const
double earthEccentricity() const
long double julianDay() const
double p2b(int i1, int i2) const
An angle, stored as degrees, but expressible in many ways.