Expose some internals.

This commit is contained in:
ehofman
2005-11-11 13:19:58 +00:00
parent 0e12fbb2a0
commit 694cf6e958
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ void Star::updatePosition(double mjd)
double
actTime, eccAnom,
xv, yv, v, r,
xe, ye, ze, ecl;
xe, ecl;
updateOrbElements(mjd);
+13
View File
@@ -35,6 +35,7 @@ class Star : public CelestialBody
private:
double xs, ys; // the sun's rectangular geocentric coordinates
double ye, ze; // the sun's rectangularequatorial rectangular geocentric coordinates
double distance; // the sun's distance to the earth
public:
@@ -47,6 +48,8 @@ public:
double getw();
double getxs();
double getys();
double getye();
double getze();
double getDistance();
};
@@ -71,6 +74,16 @@ inline double Star::getys()
return ys;
}
inline double Star::getye()
{
return ye;
}
inline double Star::getze()
{
return ze;
}
inline double Star::getDistance()
{
return distance;