]> git.mxchange.org Git - flightgear.git/blob - src/Time/sunpos.hxx
0fb0df7470b69a08ca0b10c9eb9f4bf937da2e89
[flightgear.git] / src / Time / sunpos.hxx
1 /*
2  * RCS $Id$
3  */
4
5
6 #ifndef _SUNPOS_HXX
7 #define _SUNPOS_HXX
8
9
10 #ifndef __cplusplus                                                          
11 # error This library requires C++
12 #endif                                   
13
14 #include <simgear/compiler.h>
15
16 #ifdef SG_HAVE_STD_INCLUDES
17 #  include <ctime>
18 #else
19 #  include <time.h>
20 #endif
21
22 /* update the cur_time_params structure with the current sun position */
23 void fgUpdateSunPos( void );
24
25 void fgSunPosition(time_t ssue, double *lon, double *lat);
26
27 /* given a particular time expressed in side real time at prime
28  * meridian (GST), compute position on the earth (lat, lon) such that
29  * sun is directly overhead.  (lat, lon are reported in radians */
30 void fgSunPositionGST(double gst, double *lon, double *lat);
31
32
33 #endif /* _SUNPOS_HXX */