]> git.mxchange.org Git - flightgear.git/blobdiff - Time/sunpos.h
Shufflin' stuff.
[flightgear.git] / Time / sunpos.h
index d153042de6f3070821c582ab5f6bd9e89dd775b2..96f582a33cbece68ace1da6b8ffa16c7e0030334 100644 (file)
 #define SUNPOS_H
 
 
-#include <sys/time.h>
+#include <time.h>
 
+#include "../types.h"
 
-/* given a particular time (expressed in seconds since the unix
- * epoch), compute position on the earth (lat, lon) such that sun is
- * directly overhead.  (lat, lon are reported in radians */
+/* update the cur_time_params structure with the current sun position */
+void fgUpdateSunPos(struct fgCartesianPoint scenery_center);
 
 void fgSunPosition(time_t ssue, double *lon, double *lat);