X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2Fsunsolver.hxx;h=8c98812dccd4c31465c533f85486d1c497d75a82;hb=da73dd97d3d0e36b6078728ac39f0b98cae46ff7;hp=8d8b4b8fa2f635f4a76648731f996dbe5ad37031;hpb=a217c563ba40d2cebcf11f8c91babf49e52eef66;p=flightgear.git diff --git a/src/Time/sunsolver.hxx b/src/Time/sunsolver.hxx index 8d8b4b8fa..8c98812dc 100644 --- a/src/Time/sunsolver.hxx +++ b/src/Time/sunsolver.hxx @@ -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$ */ @@ -34,11 +34,7 @@ #include -#ifdef SG_HAVE_STD_INCLUDES -# include -#else -# include -#endif +#include /** * 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 */