]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/sunsolver.hxx
More spring-cleaning fun.
[flightgear.git] / src / Time / sunsolver.hxx
index b8be9fe2d644c0ef4069d0e1c5805c4d1b611c8b..8c98812dccd4c31465c533f85486d1c497d75a82 100644 (file)
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  *
  * $Id$
  */
 
 #include <simgear/compiler.h>
 
-#ifdef SG_HAVE_STD_INCLUDES
-#  include <ctime>
-#else
-#  include <time.h>
-#endif
+#include <ctime>
 
 /**
  * Given the current unix time in seconds, calculate seconds to the
@@ -54,4 +50,12 @@ time_t fgTimeSecondsUntilSunAngle( time_t cur_time,
                                    double target_angle_deg,
                                    bool ascending );
 
+/**
+ * given a particular time expressed in side real time at prime
+ * meridian (GST), compute position on the earth (lat, lon) such that
+ * sun is directly overhead.  (lat, lon are reported in radians
+ */
+void fgSunPositionGST(double gst, double *lon, double *lat);
+
+
 #endif /* _SUNSOLVER_HXX */