**************************************************************************/
-#ifndef _MOON_H_
-#define _MOON_H_
+#ifndef _MOON_H
+#define _MOON_H
#include <Astro/orbits.h>
extern struct OrbElements pltOrbElements[9];
-#endif /* _MOON_H_ */
+#endif /* _MOON_H */
/* $Log$
-/* Revision 1.3 1998/01/19 19:26:58 curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.4 1998/01/22 02:59:27 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.3 1998/01/19 19:26:58 curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
* Revision 1.2 1998/01/19 18:40:17 curt
* Tons of little changes to clean up the code and to remove fatal errors
* when building with the c++ compiler.
**************************************************************************/
+#include <math.h>
#include <string.h>
#include <Astro/orbits.h>
do
{
E1 = E0 - (E0 - e * sin(E0) - M) / (1 - e * cos(E0));
- diff = abs(E0 - E1);
+ diff = fabs(E0 - E1);
E0 = E1;
}
while (diff > fgDegToRad(0.001));
/* $Log$
-/* Revision 1.2 1998/01/19 19:26:58 curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.3 1998/01/22 02:59:27 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.2 1998/01/19 19:26:58 curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
* Revision 1.1 1998/01/07 03:16:17 curt
* Moved from .../Src/Scenery/ to .../Src/Astro/
*
**************************************************************************/
-#ifndef ORBITS_H
-#define ORBITS_H
+#ifndef _ORBITS_H
+#define _ORBITS_H
#include <stdio.h>
void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t);
-#endif /* ORBITS_H */
+#endif /* _ORBITS_H */
/* $Log$
-/* Revision 1.2 1998/01/19 19:26:58 curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.3 1998/01/22 02:59:27 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.2 1998/01/19 19:26:58 curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
* Revision 1.1 1998/01/07 03:16:17 curt
* Moved from .../Src/Scenery/ to .../Src/Astro/
*
**************************************************************************/
-#ifndef PLANETS_H
-#define PLANETS_H
+#ifndef _PLANETS_H
+#define _PLANETS_H
struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
/* $Log$
-/* Revision 1.1 1998/01/07 03:16:18 curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.2 1998/01/22 02:59:28 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.1 1998/01/07 03:16:18 curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
* Revision 1.3 1997/12/30 16:36:53 curt
* Merged in Durk's changes ...
*
**************************************************************************/
+#ifndef _SKY_H
+#define _SKY_H
+
+
/* (Re)generate the display list */
void fgSkyInit( void );
void fgSkyRender( void );
+#endif /* _SKY_H */
+
+
/* $Log$
-/* Revision 1.2 1998/01/19 18:40:17 curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3 1998/01/22 02:59:28 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.2 1998/01/19 18:40:17 curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
* Revision 1.1 1998/01/07 03:16:19 curt
* Moved from .../Src/Scenery/ to .../Src/Astro/
*
**************************************************************************/
-#ifndef STARS_H
-#define STARS_H
+#ifndef _STARS_H
+#define _STARS_H
#define FG_MAX_STARS 500
extern struct OrbElements pltOrbElements[9];
extern struct fgTIME cur_time_params;
-#endif /* STARS_H */
+#endif /* _STARS_H */
/* $Log$
-/* Revision 1.2 1998/01/19 18:40:18 curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3 1998/01/22 02:59:28 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.2 1998/01/19 18:40:18 curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
* Revision 1.1 1998/01/07 03:16:20 curt
* Moved from .../Src/Scenery/ to .../Src/Astro/
*
**************************************************************************/
-#ifndef SUN_H
-#define SUN_H
+#ifndef _SUN_H
+#define _SUN_H
struct SunPos fgCalcSunPos(struct OrbElements sunParams);
void fgSunRender( void );
-#endif /* SUN_H */
+#endif /* _SUN_H */
/* $Log$
-/* Revision 1.2 1998/01/19 18:40:19 curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3 1998/01/22 02:59:29 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.2 1998/01/19 18:40:19 curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
* Revision 1.1 1998/01/07 03:16:21 curt
* Moved from .../Src/Scenery/ to .../Src/Astro/
*