~ubuntu-branches/ubuntu/quantal/flightgear/quantal

« back to all changes in this revision

Viewing changes to src/Time/moonpos.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Ove Kaaven
  • Date: 2002-03-27 21:50:15 UTC
  • Revision ID: james.westby@ubuntu.com-20020327215015-0rvi3o8iml0a8s93
Tags: upstream-0.7.9
ImportĀ upstreamĀ versionĀ 0.7.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * moonpos.hxx (taken from XEarth)
 
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: moonpos.hxx,v 1.6 2001/03/23 21:59:21 curt Exp $
 
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 _MOONPOS_HXX
 
40
#define _MOONPOS_HXX
 
41
 
 
42
 
 
43
#ifndef __cplusplus                                                          
 
44
# error This library requires C++
 
45
#endif                                   
 
46
 
 
47
#include <simgear/compiler.h>
 
48
 
 
49
#ifdef SG_HAVE_STD_INCLUDES
 
50
#  include <ctime>
 
51
#  ifdef macintosh
 
52
     SG_USING_STD(time_t);
 
53
#  endif
 
54
#else
 
55
#  include <time.h>
 
56
#endif
 
57
 
 
58
/* update the cur_time_params structure with the current moon position */
 
59
void fgUpdateMoonPos( void );
 
60
 
 
61
void fgMoonPosition(time_t ssue, double *lon, double *lat);
 
62
 
 
63
 
 
64
#endif /* _MOONPOS_H */