X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2FcelestialBody.hxx;h=e555deef54078e7e1483a1d88bd20ba84bcc83cd;hb=598b64fa9569c16878c904e344e2e2775e210c42;hp=6572a45c2fc114d801af1e0f1ddf131b007c1b6f;hpb=4e7fe460a5c5c1b64dd1d540bc197dbb89614b7f;p=simgear.git diff --git a/simgear/ephemeris/celestialBody.hxx b/simgear/ephemeris/celestialBody.hxx index 6572a45c..e555deef 100644 --- a/simgear/ephemeris/celestialBody.hxx +++ b/simgear/ephemeris/celestialBody.hxx @@ -81,8 +81,8 @@ public: double getRightAscension(); double getDeclination(); double getMagnitude(); - double getLon(); - double getLat(); + double getLon() const; + double getLat() const; void updatePosition(double mjd, Star *ourSun); }; @@ -90,12 +90,12 @@ inline double CelestialBody::getRightAscension() { return rightAscension; } inline double CelestialBody::getDeclination() { return declination; } inline double CelestialBody::getMagnitude() { return magnitude; } -inline double CelestialBody::getLon() +inline double CelestialBody::getLon() const { return lonEcl; } -inline double CelestialBody::getLat() +inline double CelestialBody::getLat() const { return latEcl; }