1 /**************************************************************************
4 * Written 1997 by Durk Talsma, started October, 1997.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * (Log is kept at end of this file)
22 **************************************************************************/
31 #include "../Time/fg_time.h"
34 #define X .525731112119133606
35 #define Z .850650808352039932
38 /* Initialize the Moon Display management Subsystem */
44 struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
45 struct OrbElements sunParams,
48 extern struct OrbElements pltOrbElements[9];
54 /* Revision 1.1 1998/01/07 03:16:16 curt
55 /* Moved from .../Src/Scenery/ to .../Src/Astro/
57 * Revision 1.4 1997/12/11 04:43:56 curt
58 * Fixed sun vector and lighting problems. I thing the moon is now lit
61 * Revision 1.3 1997/11/25 19:25:35 curt
62 * Changes to integrate Durk's moon/sun code updates + clean up.
64 * Revision 1.2 1997/10/25 03:24:23 curt
65 * Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
67 * Revision 1.1 1997/10/25 03:16:09 curt
68 * Initial revision of code contributed by Durk Talsma.