libnova  v 0.16.0
transform.h
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2 of the License, or (at your option) any later version.
6  *
7  * This library 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 GNU
10  * Lesser 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 - 2005 Liam Girdwood
17  */
18 
19 #ifndef _LN_TRANSFORM_H
20 #define _LN_TRANSFORM_H
21 
22 #include <libnova/ln_types.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
37 /* Use get_mean_sidereal_time, get_hrz_from_equ_siderealtime */
38 void LIBNOVA_EXPORT ln_get_hrz_from_equ(struct ln_equ_posn *object,
39  struct ln_lnlat_posn *observer, double JD, struct ln_hrz_posn *position);
40 
46 /* Equ 12.5,12.6 pg 88 */
47 void LIBNOVA_EXPORT ln_get_hrz_from_equ_sidereal_time(struct ln_equ_posn *object,
48  struct ln_lnlat_posn *observer, double sidereal,
49  struct ln_hrz_posn *position);
50 
55 /* Equ 12.3, 12.4 pg 89 */
56 void LIBNOVA_EXPORT ln_get_equ_from_ecl(struct ln_lnlat_posn *object,
57  double JD, struct ln_equ_posn *position);
58 
63 /* Equ 12.1, 12.2 Pg 88 */
64 void LIBNOVA_EXPORT ln_get_ecl_from_equ(struct ln_equ_posn *object, double JD,
65  struct ln_lnlat_posn *position);
66 
71 /* Pg 89 */
72 void LIBNOVA_EXPORT ln_get_equ_from_hrz(struct ln_hrz_posn *object,
73  struct ln_lnlat_posn *observer, double JD, struct ln_equ_posn *position);
74 
79 /* Pg ?? */
80 void LIBNOVA_EXPORT ln_get_rect_from_helio(struct ln_helio_posn *object,
81  struct ln_rect_posn *position);
82 
87 /* Equ 33.2
88 */
89 void LIBNOVA_EXPORT ln_get_ecl_from_rect(struct ln_rect_posn *rect,
90  struct ln_lnlat_posn *posn);
91 
96 /* Pg 94 */
97 void LIBNOVA_EXPORT ln_get_equ_from_gal(struct ln_gal_posn *gal,
98  struct ln_equ_posn *equ);
99 
104 void LIBNOVA_EXPORT ln_get_equ2000_from_gal(struct ln_gal_posn *gal,
105  struct ln_equ_posn *equ);
106 
111 /* Pg 94 */
112 void LIBNOVA_EXPORT ln_get_gal_from_equ(struct ln_equ_posn *equ,
113  struct ln_gal_posn *gal);
114 
119 void LIBNOVA_EXPORT ln_get_gal_from_equ2000(struct ln_equ_posn *equ,
120  struct ln_gal_posn *gal);
121 
122 #ifdef __cplusplus
123 };
124 #endif
125 
126 #endif
void LIBNOVA_EXPORT ln_get_equ_from_gal(struct ln_gal_posn *gal, struct ln_equ_posn *equ)
Transform an object galactic coordinates into equatorial coordinates.
Definition: transform.c:284
Rectangular coordinates.
Definition: ln_types.h:239
Horizontal Coordinates.
Definition: ln_types.h:189
void LIBNOVA_EXPORT ln_get_gal_from_equ2000(struct ln_equ_posn *equ, struct ln_gal_posn *gal)
Transform an object J2000 equatorial coordinates into galactic coordinates.
Definition: transform.c:361
Equatorial Coordinates.
Definition: ln_types.h:176
void LIBNOVA_EXPORT ln_get_ecl_from_equ(struct ln_equ_posn *object, double JD, struct ln_lnlat_posn *position)
Calculate ecliptical coordinates from equatorial coordinates.
Definition: transform.c:236
Ecliptical (or celestial) Longitude and Latitude.
Definition: ln_types.h:204
void LIBNOVA_EXPORT ln_get_equ_from_hrz(struct ln_hrz_posn *object, struct ln_lnlat_posn *observer, double JD, struct ln_equ_posn *position)
Calculate equatorial coordinates from horizontal coordinates.
Definition: transform.c:160
void LIBNOVA_EXPORT ln_get_gal_from_equ(struct ln_equ_posn *equ, struct ln_gal_posn *gal)
Transform an object equatorial coordinates into galactic coordinates.
Definition: transform.c:328
void LIBNOVA_EXPORT ln_get_equ2000_from_gal(struct ln_gal_posn *gal, struct ln_equ_posn *equ)
Transform an object galactic coordinate into J2000 equatorial coordinates.
Definition: transform.c:315
Heliocentric position.
Definition: ln_types.h:219
void LIBNOVA_EXPORT ln_get_equ_from_ecl(struct ln_lnlat_posn *object, double JD, struct ln_equ_posn *position)
Calculate equatorial coordinates from ecliptical coordinates.
Definition: transform.c:198
void LIBNOVA_EXPORT ln_get_rect_from_helio(struct ln_helio_posn *object, struct ln_rect_posn *position)
Calculate geocentric coordinates from heliocentric coordinates.
Definition: transform.c:36
Galactic coordinates.
Definition: ln_types.h:253
void LIBNOVA_EXPORT ln_get_hrz_from_equ_sidereal_time(struct ln_equ_posn *object, struct ln_lnlat_posn *observer, double sidereal, struct ln_hrz_posn *position)
Calculate horizontal coordinates from equatorial coordinates, using mean sidereal time...
Definition: transform.c:86
void LIBNOVA_EXPORT ln_get_ecl_from_rect(struct ln_rect_posn *rect, struct ln_lnlat_posn *posn)
Transform an objects rectangular coordinates into ecliptical coordinates.
Definition: transform.c:268
void LIBNOVA_EXPORT ln_get_hrz_from_equ(struct ln_equ_posn *object, struct ln_lnlat_posn *observer, double JD, struct ln_hrz_posn *position)
Calculate horizontal coordinates from equatorial coordinates.
Definition: transform.c:75