X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2FcelestialBody.hxx;h=e555deef54078e7e1483a1d88bd20ba84bcc83cd;hb=598b64fa9569c16878c904e344e2e2775e210c42;hp=43b1d480d2017c98c631f0638086e381bc38903d;hpb=b2a4cd488dfcfbf1d02fa41f2dfa5ad39aabb13a;p=simgear.git diff --git a/simgear/ephemeris/celestialBody.hxx b/simgear/ephemeris/celestialBody.hxx index 43b1d480..e555deef 100644 --- a/simgear/ephemeris/celestialBody.hxx +++ b/simgear/ephemeris/celestialBody.hxx @@ -15,10 +15,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * $Id$ **************************************************************************/ @@ -27,9 +26,9 @@ #ifndef _CELESTIALBODY_H_ #define _CELESTIALBODY_H_ -#ifndef __cplusplus +#ifndef __cplusplus # error This library requires C++ -#endif +#endif #include @@ -82,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); }; @@ -91,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; }