]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/sunsolver.hxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / Time / sunsolver.hxx
index 28ae241a441739e8b4f789891c33f0792b89cc85..16d312231e4d4e0f3949665a328dfa84378c6e5e 100644 (file)
 
 #include <simgear/compiler.h>
 
-#ifdef SG_HAVE_STD_INCLUDES
-#  include <ctime>
-#else
-#  include <time.h>
-#endif
+#include <ctime>
+
+class SGGeod;
 
 /**
  * Given the current unix time in seconds, calculate seconds to the
@@ -49,8 +47,7 @@
  * when the sun angle is 90 and ascending.
  */
 time_t fgTimeSecondsUntilSunAngle( time_t cur_time,
-                                   double lon_rad,
-                                   double lat_rad,
+                                   const SGGeod& loc,
                                    double target_angle_deg,
                                    bool ascending );
 
@@ -61,4 +58,5 @@ time_t fgTimeSecondsUntilSunAngle( time_t cur_time,
  */
 void fgSunPositionGST(double gst, double *lon, double *lat);
 
+
 #endif /* _SUNSOLVER_HXX */