summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-26 02:59:20 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-29 02:20:12 (GMT)
commit2029a90da256d5b8e4795520a18a848320311a78 (patch)
tree0d891166371574c8c8616765e6560cff9af72f43
parent8fd7073964885ff9b8d21a509fa8a77cda49de52 (diff)
Inline inlinable methods in KSNumbers
-rw-r--r--kstars/ksnumbers.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kstars/ksnumbers.h b/kstars/ksnumbers.h
index f917d3f..2578b77 100644
--- a/kstars/ksnumbers.h
+++ b/kstars/ksnumbers.h
@@ -55,19 +55,19 @@ public:
/** @return the current Obliquity (the angle of inclination between
*the celestial equator and the ecliptic)
*/
- const CachingDms* obliquity() const { return &Obliquity; }
+ inline const CachingDms* obliquity() const { return &Obliquity; }
/** @return the constant of aberration (20.49 arcsec). */
- dms constAberr() const { return K; }
+ inline dms constAberr() const { return K; }
/** @return the mean solar anomaly. */
- dms sunMeanAnomaly() const { return M; }
+ inline dms sunMeanAnomaly() const { return M; }
/** @return the mean solar longitude. */
- dms sunMeanLongitude() const { return L; }
+ inline dms sunMeanLongitude() const { return L; }
/** @return the true solar anomaly. */
- dms sunTrueAnomaly() const { return M0; }
+ inline dms sunTrueAnomaly() const { return M0; }
/** @return the true solar longitude. */
dms sunTrueLongitude() const { return L0; }
@@ -76,36 +76,36 @@ public:
dms earthPerihelionLongitude() const { return P; }
/** @return eccentricity of Earth's orbit.*/
- double earthEccentricity() const { return e; }
+ inline double earthEccentricity() const { return e; }
/** @return the change in obliquity due to the nutation of
* Earth's orbit. Value is in degrees */
- double dObliq() const { return deltaObliquity; }
+ inline double dObliq() const { return deltaObliquity; }
/** @return the change in Ecliptic Longitude due to nutation.
* Value is in degrees. */
- double dEcLong() const { return deltaEcLong; }
+ inline double dEcLong() const { return deltaEcLong; }
/** @return Julian centuries since J2000*/
- double julianCenturies() const { return T; }
+ inline double julianCenturies() const { return T; }
/** @return Julian Day*/
- long double julianDay() const { return days; }
+ inline long double julianDay() const { return days; }
/** @return Julian Millenia since J2000*/
- double julianMillenia() const { return jm; }
+ inline double julianMillenia() const { return jm; }
/** @return element of P1 precession array at position [i1][i2] */
- double p1( int i1, int i2 ) const { return P1[i1][i2]; }
+ inline double p1( int i1, int i2 ) const { return P1[i1][i2]; }
/** @return element of P2 precession array at position [i1][i2] */
- double p2( int i1, int i2 ) const { return P2[i1][i2]; }
+ inline double p2( int i1, int i2 ) const { return P2[i1][i2]; }
/** @return element of P1B precession array at position [i1][i2] */
- double p1b( int i1, int i2 ) const { return P1B[i1][i2]; }
+ inline double p1b( int i1, int i2 ) const { return P1B[i1][i2]; }
/** @return element of P2B precession array at position [i1][i2] */
- double p2b( int i1, int i2 ) const { return P2B[i1][i2]; }
+ inline double p2b( int i1, int i2 ) const { return P2B[i1][i2]; }
/**
*@short compute constant values that need to be computed only once per instance of the application