]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/sunsolver.hxx
Merge branch 'next' of gitorious.org:fg/flightgear into next
[flightgear.git] / src / Time / sunsolver.hxx
index 8d8b4b8fa2f635f4a76648731f996dbe5ad37031..9c984b71f2a8b25d00ab1ef322c58c39e06852c1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Written by Curtis Olson, started September 2003.
  *
- * Copyright (C) 2003  Curtis L. Olson  - curt@flightgear.org
+ * Copyright (C) 2003  Curtis L. Olson  - http://www.flightgear.org/~curt
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -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,11 @@ 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 */