1 /*
2  *  - - - - - - - - - - - - -
3  *   g a l _ p q w 2 i j k m
4  *  - - - - - - - - - - - - -
5  *
6  *  This routine is part of the General Astrodynamics Library
7  *
8  *  Description:
9  *
10  *     This routine forms the PQW to IJK transformation matrix.
11  *
12  *  Status:
13  *
14  *     support routine.
15  *
16  *  Given:
17  *
18  *     raan             d           Longitude of the ascending mode (radians)
19  *     argp             d           Argument of Pericentre (radians)
20  *     inc              d           Inclination (radians)
21  *
22  *  Returned:
23  *
24  *     pqw2ijkm       d[3][3]       Transformation Matrix
25  *
26  *  References:
27  *
28  *     Satellite Orbits
29  *     Oliver Montenbruck, Eberhard Gill
30  *     Springer 2005
31  *     Chapter 2
32  *
33  *  This revision:
34  *
35  *     2008 July 19
36  *
37  *  Copyright (C) 2008 Paul C. L. Willmott. See notes at end.
38  *
39  *-----------------------------------------------------------------------
40  */
41 
42 #ifndef _GAL_PQW2IJKM_H_
43 #define _GAL_PQW2IJKM_H_ 1
44 
45 #undef __BEGIN_DECLS
46 #undef __END_DECLS
47 #ifdef __cplusplus
48 #define __BEGIN_DECLS extern "C" {
49 #define __END_DECLS }
50 #else
51 #define __BEGIN_DECLS /* empty */
52 #define __END_DECLS   /* empty */
53 #endif
54 
55 __BEGIN_DECLS
56 
57 void
58 gal_pqw2ijkm
59  (
60    double raan,
61    double argp,
62    double inc,
63    double pqw2ijkm[3][3]
64  ) ;
65 
66 __END_DECLS
67 
68 #endif /* !_GAL_PQW2IJKM_H_ */
69 
70 /*
71  *  gal - General Astrodynamics Library
72  *  Copyright (C) 2008 Paul C. L. Willmott
73  *
74  *  This program is free software; you can redistribute it and/or modify
75  *  it under the terms of the GNU General Public License as published by
76  *  the Free Software Foundation; either version 2 of the License, or
77  *  (at your option) any later version.
78  *
79  *  This program is distributed in the hope that it will be useful,
80  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
81  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
82  *  GNU General Public License for more details.
83  *
84  *  You should have received a copy of the GNU General Public License along
85  *  with this program; if not, write to the Free Software Foundation, Inc.,
86  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
87  *
88  *  Contact:
89  *
90  *  Paul Willmott
91  *  vp9mu@amsat.org
92  */
93