1 /**************************************************************************
3 * Written by Durk Talsma. Originally started October 1997, for distribution
4 * with the FlightGear project. Version 2 was written in August and
5 * September 1998. This code is based upon algorithms and data kindly
6 * provided by Mr. Paul Schlyter. (pausch@saaf.se).
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 **************************************************************************/
28 #include <simgear/ephemeris/celestialBody.hxx>
31 class Star : public CelestialBody
36 double xs, ys; // the sun's rectangular geocentric coordinates
37 double ye, ze; // the sun's rectangularequatorial rectangular geocentric coordinates
38 double distance; // the sun's distance to the earth
45 void updatePosition(double mjd);
52 double getDistance() const;
56 inline double Star::getM() const
61 inline double Star::getw() const
66 inline double Star::getxs() const
71 inline double Star::getys() const
76 inline double Star::getye() const
81 inline double Star::getze() const
86 inline double Star::getDistance() const