]> git.mxchange.org Git - flightgear.git/blob - Time/sunpos.h
81dd125a82b3cee8ab19e4ec9a42b3a9f6b4336f
[flightgear.git] / Time / sunpos.h
1 /*
2  * sunpos.h
3  * kirk johnson
4  * july 1993
5  *
6  * code for calculating the position on the earth's surface for which
7  * the sun is directly overhead (adapted from _practical astronomy
8  * with your calculator, third edition_, peter duffett-smith,
9  * cambridge university press, 1988.)
10  *
11  * RCS $Id$
12  *
13  * Copyright (C) 1989, 1990, 1993, 1994, 1995 Kirk Lauritz Johnson
14  *
15  * Parts of the source code (as marked) are:
16  *   Copyright (C) 1989, 1990, 1991 by Jim Frost
17  *   Copyright (C) 1992 by Jamie Zawinski <jwz@lucid.com>
18  *
19  * Permission to use, copy, modify and freely distribute xearth for
20  * non-commercial and not-for-profit purposes is hereby granted
21  * without fee, provided that both the above copyright notice and this
22  * permission notice appear in all copies and in supporting
23  * documentation.
24  *
25  * The author makes no representations about the suitability of this
26  * software for any purpose. It is provided "as is" without express or
27  * implied warranty.
28  *
29  * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
30  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
31  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT
32  * OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
34  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
35  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
36  */
37
38
39 #ifndef SUNPOS_H
40 #define SUNPOS_H
41
42
43 #include <time.h>
44
45 #include <Include/types.h>
46
47 /* update the cur_time_params structure with the current sun position */
48 void fgUpdateSunPos( void );
49
50 void fgSunPosition(time_t ssue, double *lon, double *lat);
51
52
53 #endif /* SUNPOS_H */