19 #ifndef _LN_ELLIPTIC_MOTION_H
20 #define _LN_ELLIPTIC_MOTION_H
22 #include <libnova/ln_types.h>
double ln_get_ell_orbit_len(struct ln_ell_orbit *orbit)
Calculate the orbital length in AU.
Definition: elliptic_motion.c:308
double e
Definition: ln_types.h:268
double ln_get_ell_radius_vector(double a, double e, double E)
Calculate the radius vector.
Definition: elliptic_motion.c:129
double omega
Definition: ln_types.h:271
int ln_get_ell_body_rst_horizon(double JD, struct ln_lnlat_posn *observer, struct ln_ell_orbit *orbit, double horizon, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an elliptic orbit.
Definition: elliptic_motion.c:517
void ln_get_ell_geo_rect_posn(struct ln_ell_orbit *orbit, double JD, struct ln_rect_posn *posn)
Calculate the objects rectangular geocentric position.
Definition: elliptic_motion.c:243
double Z
Definition: ln_types.h:241
double ln_get_ell_body_solar_dist(double JD, struct ln_ell_orbit *orbit)
Calculate the distance between a body and the Sun.
Definition: elliptic_motion.c:378
double ln_get_ell_last_perihelion(double epoch_JD, double M, double n)
Calculate the julian day of the last perihelion.
Definition: elliptic_motion.c:592
Rise, Set and Transit times.
Definition: ln_types.h:318
int ln_get_ell_body_next_rst_horizon(double JD, struct ln_lnlat_posn *observer, struct ln_ell_orbit *orbit, double horizon, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an elliptic orbit.
Definition: elliptic_motion.c:558
double X
Definition: ln_types.h:239
double ln_get_ell_mean_motion(double a)
Calculate the mean daily motion (degrees/day).
Definition: elliptic_motion.c:165
double ln_get_ell_body_elong(double JD, struct ln_ell_orbit *orbit)
Calculate the bodies elongation to the Sun..
Definition: elliptic_motion.c:456
double ln_get_ell_orbit_vel(double JD, struct ln_ell_orbit *orbit)
Calculate orbital velocity in km/s.
Definition: elliptic_motion.c:329
double ra
Definition: ln_types.h:172
double a
Definition: ln_types.h:267
double ln_get_earth_solar_dist(double JD)
Calculate the distance between Earth and the Sun.
Definition: earth.c:2772
double ln_get_ell_mean_anomaly(double n, double delta_JD)
Calculate the mean anomaly.
Definition: elliptic_motion.c:96
Elliptic Orbital elements.
Definition: ln_types.h:266
void LIBNOVA_EXPORT ln_get_solar_geo_coords(double JD, struct ln_rect_posn *position)
Calculate geocentric coordinates (rectangular)
Definition: solar.c:116
double ln_get_ell_true_anomaly(double e, double E)
Calculate the true anomaly.
Definition: elliptic_motion.c:109
Heliocentric position.
Definition: ln_types.h:217
double n
Definition: ln_types.h:272
double ln_get_ell_smajor_diam(double e, double q)
Calculate the semi major diameter.
Definition: elliptic_motion.c:142
double i
Definition: ln_types.h:269
void ln_get_ell_helio_rect_posn(struct ln_ell_orbit *orbit, double JD, struct ln_rect_posn *posn)
Calculate the objects rectangular heliocentric position.
Definition: elliptic_motion.c:179
double LIBNOVA_EXPORT ln_deg_to_rad(double degrees)
degrees to radians
Definition: utility.c:90
double LIBNOVA_EXPORT ln_range_degrees(double angle)
puts a large angle in the correct range 0 - 360 degrees
Definition: utility.c:234
int ln_get_ell_body_rst(double JD, struct ln_lnlat_posn *observer, struct ln_ell_orbit *orbit, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an elliptic orbit.
Definition: elliptic_motion.c:498
void ln_get_ell_body_equ_coords(double JD, struct ln_ell_orbit *orbit, struct ln_equ_posn *posn)
Calculate a bodies equatorial coords.
Definition: elliptic_motion.c:269
double ln_get_ell_orbit_pvel(struct ln_ell_orbit *orbit)
Calculate orbital velocity at perihelion in km/s.
Definition: elliptic_motion.c:346
int ln_get_ell_body_next_rst(double JD, struct ln_lnlat_posn *observer, struct ln_ell_orbit *orbit, struct ln_rst_time *rst)
Calculate the time of rise, set and transit for a body with an elliptic orbit.
Definition: elliptic_motion.c:537
double ln_get_ell_orbit_avel(struct ln_ell_orbit *orbit)
Calculate the orbital velocity at aphelion in km/s.
Definition: elliptic_motion.c:361
double R
Definition: ln_types.h:220
double ln_solve_kepler(double e, double M)
Calculate the eccentric anomaly.
Definition: elliptic_motion.c:53
double Y
Definition: ln_types.h:240
double ln_get_ell_body_earth_dist(double JD, struct ln_ell_orbit *orbit)
Calculate the distance between a body and the Earth.
Definition: elliptic_motion.c:401
int ln_get_ell_body_next_rst_horizon_future(double JD, struct ln_lnlat_posn *observer, struct ln_ell_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 elliptic orbit.
Definition: elliptic_motion.c:580
double B
Definition: ln_types.h:219
double ln_get_ell_body_phase_angle(double JD, struct ln_ell_orbit *orbit)
Calculate the phase angle of the body. The angle Sun - body - Earth.
Definition: elliptic_motion.c:423
double ln_get_ell_sminor_diam(double e, double a)
Calculate the semi minor diameter.
Definition: elliptic_motion.c:154
double LIBNOVA_EXPORT ln_rad_to_deg(double radians)
radians to degrees
Definition: utility.c:84
double JD
Definition: ln_types.h:273
Ecliptical (or celestial) Longitude and Latitude.
Definition: ln_types.h:201
Equatorial Coordinates.
Definition: ln_types.h:171
double w
Definition: ln_types.h:270
double dec
Definition: ln_types.h:173
void ln_get_earth_helio_coords(double JD, struct ln_helio_posn *position)
Calculate Earth's heliocentric coordinates.
Definition: earth.c:2699
Rectangular coordinates.
Definition: ln_types.h:238