~ubuntu-branches/debian/squeeze/stellarium/squeeze

« back to all changes in this revision

Viewing changes to src/stellastro/nutation.h

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2008-05-19 21:28:23 UTC
  • mfrom: (3.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080519212823-m5nfiuntxstxzxj7
Tags: 0.9.1-4
Add libxcursor-dev, libxfixes-dev, libxinerama-dev, libqt4-opengl-dev to
build-deps (Closes: #479906)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
This program is free software; you can redistribute it and/or modify
3
 
it under the terms of the GNU Library General Public License as published by
4
 
the Free Software Foundation; either version 2 of the License, or
5
 
(at your option) any later version.
6
 
 
7
 
This program is distributed in the hope that it will be useful,
8
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
GNU General Public License for more details.
11
 
 
12
 
You should have received a copy of the GNU General Public License
13
 
along with this program; if not, write to the Free Software
14
 
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
15
 
 
16
 
Copyright (C) 2000 Liam Girdwood <liam@nova-ioe.org>
17
 
 
18
 
*/
19
 
 
20
 
/* taken from table 21.A pg 133 */
21
 
 
22
 
#ifndef LN_NUTATION_H
23
 
#define LN_NUTATION_H
24
 
 
25
 
 /* Nutation is a period oscillation of the Earths rotational axis around it's mean position.*/
26
 
 
27
 
// Contains Nutation in longitude, obliquity and ecliptic obliquity.
28
 
// Angles are expressed in degrees.
29
 
struct ln_nutation
30
 
{
31
 
        double longitude;       /*!< Nutation in longitude */
32
 
        double obliquity;       /*!< Nutation in obliquity */
33
 
        double ecliptic;        /*!< Obliquity of the ecliptic */
34
 
};
35
 
 
36
 
struct nutation_arguments
37
 
{
38
 
    double D;
39
 
    double M;
40
 
    double MM;
41
 
    double F;
42
 
    double O;
43
 
};
44
 
 
45
 
struct nutation_coefficients
46
 
{
47
 
    double longitude1;
48
 
    double longitude2;
49
 
    double obliquity1;
50
 
    double obliquity2;
51
 
};
52
 
 
53
 
/* Calculate nutation of longitude and obliquity in degrees from Julian Ephemeris Day
54
 
 * params : JD Julian Day, nutation Pointer to store nutation.
55
 
 * Chapter 21 pg 131-134 Using Table 21A */
56
 
void get_nutation (double JD, struct ln_nutation * nutation);
57
 
 
58
 
 
59
 
#endif