From: ehofman Date: Fri, 11 Nov 2005 13:19:58 +0000 (+0000) Subject: Expose some internals. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=694cf6e9580c5959daac64175a1baff695de312f;p=simgear.git Expose some internals. --- diff --git a/simgear/ephemeris/star.cxx b/simgear/ephemeris/star.cxx index 3a74bac3..86450380 100644 --- a/simgear/ephemeris/star.cxx +++ b/simgear/ephemeris/star.cxx @@ -80,7 +80,7 @@ void Star::updatePosition(double mjd) double actTime, eccAnom, xv, yv, v, r, - xe, ye, ze, ecl; + xe, ecl; updateOrbElements(mjd); diff --git a/simgear/ephemeris/star.hxx b/simgear/ephemeris/star.hxx index b28eff98..81419e79 100644 --- a/simgear/ephemeris/star.hxx +++ b/simgear/ephemeris/star.hxx @@ -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;