X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Astro%2Forbits.h;h=377c416604c9aa263986df96df96cea1e913abf4;hb=20cf326fec07113e0702a7367a162febf0fade88;hp=658edd311f9f56f0fee74286343404f16333c57f;hpb=28e2a0560cb48546d198055ac373d52017e68937;p=simgear.git diff --git a/Astro/orbits.h b/Astro/orbits.h index 658edd31..377c4166 100644 --- a/Astro/orbits.h +++ b/Astro/orbits.h @@ -34,14 +34,17 @@ -#define STANDARDEPOCH 2000 -#define PIOVER180 1.74532925199433E-002 +//#define STANDARDEPOCH 2000 -struct SunPos { +typedef struct { double xs; double ys; double dist; -}; + double lonSun; +} fgSUNPOS; + +extern fgSUNPOS solarPosition; + struct OrbElements { double NFirst; /* longitude of the ascending node first part */ @@ -68,11 +71,10 @@ struct CelestialCoord { }; -/* double fgDegToRad(double angle); */ double fgCalcEccAnom(double M, double e); double fgCalcActTime(struct fgTIME t); -void fgReadOrbElements(struct OrbElements *dest, FILE *src); +int fgReadOrbElements (struct OrbElements *dest, FILE * src); int fgSolarSystemInit(struct fgTIME t); void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t); @@ -81,10 +83,15 @@ void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t); /* $Log$ -/* Revision 1.5 1998/02/12 21:59:35 curt -/* Incorporated code changes contributed by Charlie Hotchkiss -/* +/* Revision 1.6 1998/02/23 19:07:55 curt +/* Incorporated Durk's Astro/ tweaks. Includes unifying the sun position +/* calculation code between sun display, and other FG sections that use this +/* for things like lighting. /* + * Revision 1.5 1998/02/12 21:59:35 curt + * Incorporated code changes contributed by Charlie Hotchkiss + * + * * Revision 1.4 1998/02/02 20:53:22 curt * To version 0.29 *