2 * moonpos.hxx (taken from XEarth)
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.)
13 * Copyright (C) 1989, 1990, 1993, 1994, 1995 Kirk Lauritz Johnson
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>
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
25 * The author makes no representations about the suitability of this
26 * software for any purpose. It is provided "as is" without express or
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.
44 # error This library requires C++
47 #include <simgear/compiler.h>
49 #ifdef SG_HAVE_STD_INCLUDES
58 /* update the cur_time_params structure with the current moon position */
59 void fgUpdateMoonPos( void );
61 void fgMoonPosition(time_t ssue, double *lon, double *lat);
64 #endif /* _MOONPOS_H */