summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-26 03:02:10 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-29 02:20:26 (GMT)
commit27d32e1ccedf1400e6cf5a2d34e542450ffa0eaa (patch)
treec8d501a4f8283c1cd72a4be699c70649ff5170e0
parent6b9ddf72f775d45ff720858395ce316457714a25 (diff)
Change some KSNumbers values to CachingDms to improve re-use
-rw-r--r--kstars/ksnumbers.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kstars/ksnumbers.h b/kstars/ksnumbers.h
index 2578b77..47cb5cd 100644
--- a/kstars/ksnumbers.h
+++ b/kstars/ksnumbers.h
@@ -70,10 +70,10 @@ public:
inline dms sunTrueAnomaly() const { return M0; }
/** @return the true solar longitude. */
- dms sunTrueLongitude() const { return L0; }
+ inline CachingDms sunTrueLongitude() const { return L0; }
/** @return the longitude of the Earth's perihelion point. */
- dms earthPerihelionLongitude() const { return P; }
+ inline CachingDms earthPerihelionLongitude() const { return P; }
/** @return eccentricity of Earth's orbit.*/
inline double earthEccentricity() const { return e; }
@@ -122,11 +122,11 @@ public:
*/
inline long double getJD() const { return days; }
- double vEarth(int i) const {return vearth[i];}
+ inline double vEarth(int i) const {return vearth[i];}
private:
- CachingDms Obliquity;
- dms K, L, L0, LM, M, M0, O, P, D, MM, F;
+ CachingDms Obliquity, L0, P;
+ dms K, L, LM, M, M0, O, D, MM, F;
dms XP, YP, ZP, XB, YB, ZB;
double CX, SX, CY, SY, CZ, SZ;
double CXB, SXB, CYB, SYB, CZB, SZB;