X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstar.cxx;h=b36a9006bed85f488fcfaa53e720aaf8c51cb91c;hb=598b64fa9569c16878c904e344e2e2775e210c42;hp=01f20b729520b3977bbc36e7faaca63a93040cd8;hpb=82459a2802a939434f9fc5b88d2b2aea58f0043d;p=simgear.git diff --git a/simgear/ephemeris/star.cxx b/simgear/ephemeris/star.cxx index 01f20b72..b36a9006 100644 --- a/simgear/ephemeris/star.cxx +++ b/simgear/ephemeris/star.cxx @@ -15,19 +15,14 @@ * 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$ **************************************************************************/ - -#ifdef __BORLANDC__ -# define exception c_exception -#endif -#include +#include #include @@ -80,13 +75,13 @@ void Star::updatePosition(double mjd) double actTime, eccAnom, xv, yv, v, r, - xe, ye, ze, ecl; + xe, ecl; updateOrbElements(mjd); - actTime = fgCalcActTime(mjd); - ecl = DEG_TO_RAD * (23.4393 - 3.563E-7 * actTime); // Angle in Radians - eccAnom = fgCalcEccAnom(M, e); // Calculate the eccentric Anomaly (also known as solving Kepler's equation) + actTime = sgCalcActTime(mjd); + ecl = SGD_DEGREES_TO_RADIANS * (23.4393 - 3.563E-7 * actTime); // Angle in Radians + eccAnom = sgCalcEccAnom(M, e); // Calculate the eccentric Anomaly (also known as solving Kepler's equation) xv = cos(eccAnom) - e; yv = sqrt (1.0 - e*e) * sin(eccAnom);