X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstar.hxx;h=781cfcd602beda0760bba89b412ee7f1a1b294f1;hb=aefe9bc11682f39b3936b9f01a0d37e9d6428078;hp=5440f724dcc4e220e47d40bd4cf4edcf75b8b5e6;hpb=8159b749f49be587e794a8438db7a4373d527b1d;p=simgear.git diff --git a/simgear/ephemeris/star.hxx b/simgear/ephemeris/star.hxx index 5440f724..781cfcd6 100644 --- a/simgear/ephemeris/star.hxx +++ b/simgear/ephemeris/star.hxx @@ -5,19 +5,19 @@ * September 1998. This code is based upon algorithms and data kindly * provided by Mr. Paul Schlyter. (pausch@saaf.se). * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. + * Library General Public License for more details. * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * $Id$ **************************************************************************/ @@ -25,7 +25,7 @@ #define _STAR_HXX_ -#include "celestialBody.hxx" +#include class Star : public CelestialBody @@ -34,18 +34,21 @@ 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: - Star (SGTime *t); + Star (double mjd); Star (); ~Star(); - void updatePosition(SGTime *t); + void updatePosition(double mjd); double getM(); double getw(); double getxs(); double getys(); + double getye(); + double getze(); double getDistance(); }; @@ -70,6 +73,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;