From: curt Date: Thu, 2 Mar 2000 15:06:14 +0000 (+0000) Subject: Added top level ephemeris class. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f3de889d759b52728af6c83a710a9ef7d930f59;p=simgear.git Added top level ephemeris class. --- diff --git a/simgear/ephemeris/ephemeris.cxx b/simgear/ephemeris/ephemeris.cxx new file mode 100644 index 00000000..a3787155 --- /dev/null +++ b/simgear/ephemeris/ephemeris.cxx @@ -0,0 +1,43 @@ +// ephemeris.cxx -- Top level class for calculating current positions of +// astronomical objects +// +// Written by Curtis Olson, started March 2000. +// +// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org +// +// 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 program 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. +// +// 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. +// +// $Id$ + + +#include "ephemeris.hxx" + + +// Constructor +FGEphemeris::FGEphemeris( void ) { +} + + +// Destructor +FGEphemeris::~FGEphemeris( void ) { +} + + +// Update (recalculate) the positions of all objects for the specified +// time +void FGEphemeris::update( FGTime *t ) { + our_sun.updatePosition( t ); +} + diff --git a/simgear/ephemeris/ephemeris.hxx b/simgear/ephemeris/ephemeris.hxx new file mode 100644 index 00000000..adae3023 --- /dev/null +++ b/simgear/ephemeris/ephemeris.hxx @@ -0,0 +1,63 @@ +// ephemeris.hxx -- Top level class for calculating current positions of +// astronomical objects +// +// Written by Curtis Olson, started March 2000. +// +// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org +// +// 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 program 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. +// +// 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. +// +// $Id$ + + +#ifndef _EPHEMERIS_HXX +#define _EPHEMERIS_HXX + + +#include