head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.38; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.54; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.00; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.56; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# jupiter.cxx

    00001 /**************************************************************************
    00002  * jupiter.cxx
    00003  * Written by Durk Talsma. Originally started October 1997, for distribution
    00004  * with the FlightGear project. Version 2 was written in August and
    00005  * September 1998. This code is based upon algorithms and data kindly
    00006  * provided by Mr. Paul Schlyter. (pausch@@saaf.se).
    00007  *
    00008  * This library is free software; you can redistribute it and/or
    00009  * modify it under the terms of the GNU Library General Public
    00010  * License as published by the Free Software Foundation; either
    00011  * version 2 of the License, or (at your option) any later version.
    00012  *
    00013  * This library is distributed in the hope that it will be useful,
    00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00016  * Library General Public License for more details.
    00017  *
    00018  * You should have received a copy of the GNU Library General Public
    00019  * License along with this library; if not, write to the
    00020  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00021  * Boston, MA  02111-1307, USA.
    00022  *
    00023  * $Id: jupiter.cxx,v 1.5 2000/07/08 19:16:10 curt Exp $
    00024  **************************************************************************/
    00025
    00026
    00027 #ifdef __BORLANDC__
    00028 #  define exception c_exception
    00029 #endif
    00030 #include <math.h>
    00031
    00032 #include "jupiter.hxx"
    00033
    00034 /*************************************************************************
    00035  * Jupiter::Jupiter(double mjd)
    00036  * Public constructor for class Jupiter
    00037  * Argument: The current time.
    00038  * the hard coded orbital elements for Jupiter are passed to
    00039  * CelestialBody::CelestialBody();
    00040  ************************************************************************/
    00041 Jupiter::Jupiter(double mjd) :
    00042   CelestialBody(100.4542,  2.7685400E-5,
    00043                 1.3030,   -1.557E-7,
    00044                 273.8777,  1.6450500E-5,
    00045                 5.2025600, 0.000000,
    00046                 0.048498,  4.469E-9,
    00047                 19.89500,  0.08308530010, mjd)
    00048 {
    00049 }
    00050
    00051 Jupiter::Jupiter() :
    00052   CelestialBody(100.4542,  2.7685400E-5,
    00053                 1.3030,   -1.557E-7,
    00054                 273.8777,  1.6450500E-5,
    00055                 5.2025600, 0.000000,
    00056                 0.048498,  4.469E-9,
    00057                 19.89500,  0.08308530010)
    00058 {
    00059 }
    00060
    00061 /*************************************************************************
    00062  * void Jupiter::updatePosition(double mjd, Star *ourSun)
    00063  *
    00064  * calculates the current position of Jupiter, by calling the base class,
    00065  * CelestialBody::updatePosition(); The current magnitude is calculated using
    00066  * a Jupiter specific equation
    00067  *************************************************************************/
    00068 void Jupiter::updatePosition(double mjd, Star *ourSun)
    00069 {
    00070   CelestialBody::updatePosition(mjd, ourSun);
    00071   magnitude = -9.25 + 5*log10( r*R ) + 0.014 * FV;
    00072 }
    00073
    00074
    00075
    00076

@ 1.3 log @Oops, try again. @ text @d85 1 a85 1