libnova v 0.15.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List

parabolic_motion.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_PARABOLIC_MOTION_H
20 #define _LN_PARABOLIC_MOTION_H
21
22 #include <libnova/ln_types.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
39 double LIBNOVA_EXPORT ln_solve_barker (double q, double t);
40
45 double LIBNOVA_EXPORT ln_get_par_true_anomaly (double q, double t);
46
51 double LIBNOVA_EXPORT ln_get_par_radius_vector (double q, double t);
52
57 void LIBNOVA_EXPORT ln_get_par_geo_rect_posn (struct ln_par_orbit* orbit, double JD, struct ln_rect_posn* posn);
58
59
64 void LIBNOVA_EXPORT ln_get_par_helio_rect_posn (struct ln_par_orbit* orbit, double JD, struct ln_rect_posn* posn);
65
71 void LIBNOVA_EXPORT ln_get_par_body_equ_coords (double JD, struct ln_par_orbit * orbit, struct ln_equ_posn * posn);
72
78 double LIBNOVA_EXPORT ln_get_par_body_earth_dist (double JD, struct ln_par_orbit * orbit);
79
85 double LIBNOVA_EXPORT ln_get_par_body_solar_dist (double JD, struct ln_par_orbit * orbit);
86
91 double LIBNOVA_EXPORT ln_get_par_body_phase_angle (double JD, struct ln_par_orbit * orbit);
92
97 double LIBNOVA_EXPORT ln_get_par_body_elong (double JD, struct ln_par_orbit * orbit);
98
103 int LIBNOVA_EXPORT ln_get_par_body_rst (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst);
104
109 int LIBNOVA_EXPORT ln_get_par_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rst_time * rst);
110
115 int LIBNOVA_EXPORT ln_get_par_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst);
116
121 int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rst_time * rst);
122
127 int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, int day_limit, struct ln_rst_time * rst);
128
129 #ifdef __cplusplus
130 };
131 #endif
132
133 #endif
ln_rect_posn
Rectangular coordinates.
Definition: ln_types.h:237
ln_get_par_body_next_rst_horizon_future
int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon_future(double JD, struct ln_lnlat_posn *observer, struct ln_par_orbit *orbit, double horizon, int day_limit, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an parabolic orbit.
Definition: parabolic_motion.c:400
ln_get_par_radius_vector
double LIBNOVA_EXPORT ln_get_par_radius_vector(double q, double t)
Calculate the radius vector.
Definition: parabolic_motion.c:78
ln_equ_posn
Equatorial Coordinates.
Definition: ln_types.h:170
ln_get_par_body_next_rst
int LIBNOVA_EXPORT ln_get_par_body_next_rst(double JD, struct ln_lnlat_posn *observer, struct ln_par_orbit *orbit, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an parabolic orbit.
Definition: parabolic_motion.c:357
ln_lnlat_posn
Ecliptical (or celestial) Longitude and Latitude.
Definition: ln_types.h:200
ln_get_par_body_solar_dist
double LIBNOVA_EXPORT ln_get_par_body_solar_dist(double JD, struct ln_par_orbit *orbit)
Calculate the distance between a body and the Sun.
Definition: parabolic_motion.c:237
ln_par_orbit
Parabolic Orbital elements.
Definition: ln_types.h:283
ln_rst_time
Rise, Set and Transit times.
Definition: ln_types.h:317
ln_get_par_helio_rect_posn
void LIBNOVA_EXPORT ln_get_par_helio_rect_posn(struct ln_par_orbit *orbit, double JD, struct ln_rect_posn *posn)
Calculate an objects rectangular heliocentric position.
Definition: parabolic_motion.c:95
ln_get_par_body_earth_dist
double LIBNOVA_EXPORT ln_get_par_body_earth_dist(double JD, struct ln_par_orbit *orbit)
Calculate the distance between a body and the Earth.
Definition: parabolic_motion.c:215
ln_get_par_body_elong
double LIBNOVA_EXPORT ln_get_par_body_elong(double JD, struct ln_par_orbit *orbit)
Calculate the bodies elongation to the Sun.
Definition: parabolic_motion.c:285
ln_get_par_body_rst
int LIBNOVA_EXPORT ln_get_par_body_rst(double JD, struct ln_lnlat_posn *observer, struct ln_par_orbit *orbit, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with a parabolic orbit.
Definition: parabolic_motion.c:318
ln_get_par_body_rst_horizon
int LIBNOVA_EXPORT ln_get_par_body_rst_horizon(double JD, struct ln_lnlat_posn *observer, struct ln_par_orbit *orbit, double horizon, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with a parabolic orbit.
Definition: parabolic_motion.c:337
ln_get_par_geo_rect_posn
void LIBNOVA_EXPORT ln_get_par_geo_rect_posn(struct ln_par_orbit *orbit, double JD, struct ln_rect_posn *posn)
Calculate an objects rectangular geocentric position.
Definition: parabolic_motion.c:153
ln_get_par_body_next_rst_horizon
int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon(double JD, struct ln_lnlat_posn *observer, struct ln_par_orbit *orbit, double horizon, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an parabolic orbit.
Definition: parabolic_motion.c:378
ln_get_par_true_anomaly
double LIBNOVA_EXPORT ln_get_par_true_anomaly(double q, double t)
Calculate the true anomaly.
Definition: parabolic_motion.c:59
ln_solve_barker
double LIBNOVA_EXPORT ln_solve_barker(double q, double t)
Solve Barkers equation.
Definition: parabolic_motion.c:37
ln_get_par_body_phase_angle
double LIBNOVA_EXPORT ln_get_par_body_phase_angle(double JD, struct ln_par_orbit *orbit)
Calculate the phase angle of the body.
Definition: parabolic_motion.c:258
ln_get_par_body_equ_coords
void LIBNOVA_EXPORT ln_get_par_body_equ_coords(double JD, struct ln_par_orbit *orbit, struct ln_equ_posn *posn)
Calculate a bodies equatorial coordinates.
Definition: parabolic_motion.c:179