aberration.h | aberration.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* Aberration: need a description. | * Aberration: need a description. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn void ln_get_equ_aber (struct ln_equ_posn * mean_position, double JD , struct ln_equ_posn * position); | /*! \fn void ln_get_equ_aber (struct ln_equ_posn * mean_position, double JD , struct ln_equ_posn * position); | |||
* \brief Calculate equatorial coordinates with the effects of aberration. | * \brief Calculate equatorial coordinates with the effects of aberration. | |||
* \ingroup aberration | * \ingroup aberration | |||
*/ | */ | |||
/* Equ 22.1, 22.3, 22.4 and Ron-Vondrak expression */ | /* Equ 22.1, 22.3, 22.4 and Ron-Vondrak expression */ | |||
void ln_get_equ_aber (struct ln_equ_posn * mean_position, double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_equ_aber (struct ln_equ_posn * mean_position, do uble JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_ecl_aber (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | /*! \fn void ln_get_ecl_aber (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | |||
* \brief Calculate ecliptical coordinates with the effects of aberration. | * \brief Calculate ecliptical coordinates with the effects of aberration. | |||
* \ingroup aberration | * \ingroup aberration | |||
*/ | */ | |||
/* Equ 22.1, 22.2 pg 139 */ | /* Equ 22.1, 22.2 pg 139 */ | |||
void ln_get_ecl_aber (struct ln_lnlat_posn * mean_position, double JD, stru ct ln_lnlat_posn * position); | void LIBNOVA_EXPORT ln_get_ecl_aber (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
airmass.h | airmass.h | |||
---|---|---|---|---|
skipping to change at line 22 | skipping to change at line 22 | |||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. | |||
* | * | |||
* Copyright (C) 2000 - 2005 Petr Kubanek | * Copyright (C) 2000 - 2005 Petr Kubanek | |||
*/ | */ | |||
#ifndef _LN_AIRMASS_H | #ifndef _LN_AIRMASS_H | |||
#define _LN_AIRMASS_H | #define _LN_AIRMASS_H | |||
#include <libnova/ln_types.h> | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \fn double ln_get_airmass (double alt, double airmass_scale); | /*! \fn double ln_get_airmass (double alt, double airmass_scale); | |||
* \brief Calculate airmass in given altitude. | * \brief Calculate airmass in given altitude. | |||
* \ingroup airmass | * \ingroup airmass | |||
*/ | */ | |||
double ln_get_airmass (double alt, double airmass_scale); | double LIBNOVA_EXPORT ln_get_airmass (double alt, double airmass_scale); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
angular_separation.h | angular_separation.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* Functions relating to an the angular separation and position | * Functions relating to an the angular separation and position | |||
* angle between 2 bodies. | * angle between 2 bodies. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_angular_separation (struct ln_equ_posn* posn1, struct ln_equ_posn* posn2); | /*! \fn double ln_get_angular_separation (struct ln_equ_posn* posn1, struct ln_equ_posn* posn2); | |||
* \brief Calculate the angular separation between 2 bodies | * \brief Calculate the angular separation between 2 bodies | |||
* \ingroup angular | * \ingroup angular | |||
*/ | */ | |||
double ln_get_angular_separation (struct ln_equ_posn* posn1, struct ln_equ_ posn* posn2); | double LIBNOVA_EXPORT ln_get_angular_separation (struct ln_equ_posn* posn1, struct ln_equ_posn* posn2); | |||
/*! \fn double ln_get_rel_posn_angle (struct ln_equ_posn* posn1, struct ln_ equ_posn* posn2); | /*! \fn double ln_get_rel_posn_angle (struct ln_equ_posn* posn1, struct ln_ equ_posn* posn2); | |||
* \brief Calculate the position angle between 2 bodies | * \brief Calculate the position angle between 2 bodies | |||
* \ingroup angular | * \ingroup angular | |||
*/ | */ | |||
double ln_get_rel_posn_angle (struct ln_equ_posn* posn1, struct ln_equ_posn * posn2); | double LIBNOVA_EXPORT ln_get_rel_posn_angle (struct ln_equ_posn* posn1, str uct ln_equ_posn* posn2); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
apparent_position.h | apparent_position.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* The apparent position of a star is it's position as seen from | * The apparent position of a star is it's position as seen from | |||
* the centre of the Earth. | * the centre of the Earth. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn void ln_get_apparent_posn (struct ln_equ_posn * mean_position, stru ct ln_equ_posn * proper_motion, double JD, struct ln_equ_posn * position); | /*! \fn void ln_get_apparent_posn (struct ln_equ_posn * mean_position, stru ct ln_equ_posn * proper_motion, double JD, struct ln_equ_posn * position); | |||
* \brief Calculate the apparent position of a star. | * \brief Calculate the apparent position of a star. | |||
* \ingroup apparent | * \ingroup apparent | |||
*/ | */ | |||
void ln_get_apparent_posn (struct ln_equ_posn * mean_position, struct ln_eq u_posn * proper_motion, double JD,struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_apparent_posn (struct ln_equ_posn * mean_positio n, struct ln_equ_posn * proper_motion, double JD,struct ln_equ_posn * posit ion); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
asteroid.h | asteroid.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
* | * | |||
* Functions relating to Asteroids. | * Functions relating to Asteroids. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! | /*! | |||
* \fn double ln_get_asteroid_mag (double JD, struct ln_ell_orbit * orbit, d ouble H, double G) | * \fn double ln_get_asteroid_mag (double JD, struct ln_ell_orbit * orbit, d ouble H, double G) | |||
* \brief Calculate the visual magnitude of an asteroid. | * \brief Calculate the visual magnitude of an asteroid. | |||
*/ | */ | |||
double ln_get_asteroid_mag (double JD, struct ln_ell_orbit * orbit, double H, double G); | double LIBNOVA_EXPORT ln_get_asteroid_mag (double JD, struct ln_ell_orbit * orbit, double H, double G); | |||
/*! \fn double ln_get_asteroid_sdiam_km (double H, double A) | /*! \fn double ln_get_asteroid_sdiam_km (double H, double A) | |||
* \brief Calcaluate the semidiameter of an asteroid in km. | * \brief Calculate the semidiameter of an asteroid in km. | |||
*/ | */ | |||
double ln_get_asteroid_sdiam_km (double H, double A); | double LIBNOVA_EXPORT ln_get_asteroid_sdiam_km (double H, double A); | |||
/*! \fn double ln_get_asteroid_sdiam_arc (double JD, struct ln_ell_orbit * orbit, double H, double A) | /*! \fn double ln_get_asteroid_sdiam_arc (double JD, struct ln_ell_orbit * orbit, double H, double A) | |||
* \brief Calcaluate the semidiameter of an asteroid in arc seconds. | * \brief Calculate the semidiameter of an asteroid in arc seconds. | |||
*/ | */ | |||
double ln_get_asteroid_sdiam_arc (double JD, struct ln_ell_orbit * orbit, d ouble H, double A); | double LIBNOVA_EXPORT ln_get_asteroid_sdiam_arc (double JD, struct ln_ell_o rbit * orbit, double H, double A); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added | |||
comet.h | comet.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* Functions relating to Comets. | * Functions relating to Comets. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! | /*! | |||
* \fn double ln_get_ell_comet_mag (double JD, struct ln_ell_orbit * orbit, double g, double k) | * \fn double ln_get_ell_comet_mag (double JD, struct ln_ell_orbit * orbit, double g, double k) | |||
* \ingroup comet | * \ingroup comet | |||
* \brief Calculate the visual magnitude of a comet in an elliptic orbit. | * \brief Calculate the visual magnitude of a comet in an elliptic orbit. | |||
*/ | */ | |||
double ln_get_ell_comet_mag (double JD, struct ln_ell_orbit * orbit, double g, double k); | double LIBNOVA_EXPORT ln_get_ell_comet_mag (double JD, struct ln_ell_orbit * orbit, double g, double k); | |||
/*! | /*! | |||
* \fn double ln_get_par_comet_mag (double JD, struct ln_par_orbit * orbit, double g, double k) | * \fn double ln_get_par_comet_mag (double JD, struct ln_par_orbit * orbit, double g, double k) | |||
* \ingroup comet | * \ingroup comet | |||
* \brief Calculate the visual magnitude of a comet in a parabolic orbit. | * \brief Calculate the visual magnitude of a comet in a parabolic orbit. | |||
*/ | */ | |||
double ln_get_par_comet_mag (double JD, struct ln_par_orbit * orbit, double g, double k); | double LIBNOVA_EXPORT ln_get_par_comet_mag (double JD, struct ln_par_orbit * orbit, double g, double k); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
dynamical_time.h | dynamical_time.h | |||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
/*! | /*! | |||
* \defgroup dynamical Dynamical Time | * \defgroup dynamical Dynamical Time | |||
* | * | |||
* TODO | * TODO | |||
*/ | */ | |||
/*! \fn double ln_get_dynamical_time_diff (double JD) | /*! \fn double ln_get_dynamical_time_diff (double JD) | |||
* \ingroup dynamical | * \ingroup dynamical | |||
* \brief Calculate approximate dynamical time difference from julian day in seconds | * \brief Calculate approximate dynamical time difference from julian day in seconds | |||
*/ | */ | |||
double ln_get_dynamical_time_diff (double JD); | double LIBNOVA_EXPORT ln_get_dynamical_time_diff (double JD); | |||
/*! \fn double ln_get_jde (double JD) | /*! \fn double ln_get_jde (double JD) | |||
* \brief Calculate julian ephemeris day (JDE) | * \brief Calculate julian ephemeris day (JDE) | |||
* \ingroup dynamical | * \ingroup dynamical | |||
*/ | */ | |||
double ln_get_jde (double JD); | double LIBNOVA_EXPORT ln_get_jde (double JD); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
earth.h | earth.h | |||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
/* | /* | |||
** Earth | ** Earth | |||
*/ | */ | |||
/*! \fn void ln_get_earth_helio_coords (double JD, struct ln_helio_posn * p osition); | /*! \fn void ln_get_earth_helio_coords (double JD, struct ln_helio_posn * p osition); | |||
* \brief Calculate Earth's heliocentric coordinates | * \brief Calculate Earth's heliocentric coordinates | |||
* \ingroup earth | * \ingroup earth | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_earth_helio_coords (double JD, struct ln_helio_posn * position) ; | void LIBNOVA_EXPORT ln_get_earth_helio_coords (double JD, struct ln_helio_p osn * position); | |||
/*! \fn void ln_get_earth_solar_dist (double JD); | /*! \fn void ln_get_earth_solar_dist (double JD); | |||
* \brief Calculate the distance between Earth and the Sun. | * \brief Calculate the distance between Earth and the Sun. | |||
* \ingroup earth | * \ingroup earth | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_earth_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_earth_solar_dist (double JD); | |||
/*! \fn void ln_get_earth_rect_helio (double JD, struct ln_rect_posn * posi tion) | /*! \fn void ln_get_earth_rect_helio (double JD, struct ln_rect_posn * posi tion) | |||
* \ingroup earth | * \ingroup earth | |||
* \brief Calculate the Earths rectangular heliocentric coordinates. | * \brief Calculate the Earths rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_earth_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_earth_rect_helio (double JD, struct ln_rect_posn * position); | |||
/*! \fn void ln_get_earth_centre_dist (float height, double latitude, doubl e * p_sin_o, double * p_cos_o); | /*! \fn void ln_get_earth_centre_dist (float height, double latitude, doubl e * p_sin_o, double * p_cos_o); | |||
* \ingroup earth | * \ingroup earth | |||
* \brief Calculate Earth globe centre distance. | * \brief Calculate Earth globe centre distance. | |||
*/ | */ | |||
void ln_get_earth_centre_dist (float height, double latitude, double * p_si n_o, double * p_cos_o); | void LIBNOVA_EXPORT ln_get_earth_centre_dist (float height, double latitude , double * p_sin_o, double * p_cos_o); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added | |||
elliptic_motion.h | elliptic_motion.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
* | * | |||
* Functions relating to the elliptic motion of bodies. | * Functions relating to the elliptic motion of bodies. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_solve_kepler (double E, double M); | /*! \fn double ln_solve_kepler (double E, double M); | |||
* \brief Calculate the eccentric anomaly. | * \brief Calculate the eccentric anomaly. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_solve_kepler (double e, double M); | double LIBNOVA_EXPORT ln_solve_kepler (double e, double M); | |||
/*! \fn double ln_get_ell_mean_anomaly (double n, double delta_JD); | /*! \fn double ln_get_ell_mean_anomaly (double n, double delta_JD); | |||
* \brief Calculate the mean anomaly. | * \brief Calculate the mean anomaly. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_mean_anomaly (double n, double delta_JD); | double LIBNOVA_EXPORT ln_get_ell_mean_anomaly (double n, double delta_JD); | |||
/*! \fn double ln_get_ell_true_anomaly (double e, double E); | /*! \fn double ln_get_ell_true_anomaly (double e, double E); | |||
* \brief Calculate the true anomaly. | * \brief Calculate the true anomaly. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_true_anomaly (double e, double E); | double LIBNOVA_EXPORT ln_get_ell_true_anomaly (double e, double E); | |||
/*! \fn double ln_get_ell_radius_vector (double a, double e, double E); | /*! \fn double ln_get_ell_radius_vector (double a, double e, double E); | |||
* \brief Calculate the radius vector. | * \brief Calculate the radius vector. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_radius_vector (double a, double e, double E); | double LIBNOVA_EXPORT ln_get_ell_radius_vector (double a, double e, double E); | |||
/*! \fn double ln_get_ell_smajor_diam (double e, double q); | /*! \fn double ln_get_ell_smajor_diam (double e, double q); | |||
* \brief Calculate the semi major diameter. | * \brief Calculate the semi major diameter. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_smajor_diam (double e, double q); | double LIBNOVA_EXPORT ln_get_ell_smajor_diam (double e, double q); | |||
/*! \fn double ln_get_ell_sminor_diam (double e, double a); | /*! \fn double ln_get_ell_sminor_diam (double e, double a); | |||
* \brief Calculate the semi minor diameter. | * \brief Calculate the semi minor diameter. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_sminor_diam (double e, double a); | double LIBNOVA_EXPORT ln_get_ell_sminor_diam (double e, double a); | |||
/*! \fn double ln_get_ell_mean_motion (double a); | /*! \fn double ln_get_ell_mean_motion (double a); | |||
* \brief Calculate the mean daily motion (degrees/day). | * \brief Calculate the mean daily motion (degrees/day). | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_mean_motion (double a); | double LIBNOVA_EXPORT ln_get_ell_mean_motion (double a); | |||
/*! \fn void ln_get_ell_geo_rect_posn (struct ln_ell_orbit* orbit, double J D, struct ln_rect_posn* posn); | /*! \fn void ln_get_ell_geo_rect_posn (struct ln_ell_orbit* orbit, double J D, struct ln_rect_posn* posn); | |||
* \brief Calculate the objects rectangular geocentric position. | * \brief Calculate the objects rectangular geocentric position. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
void ln_get_ell_geo_rect_posn (struct ln_ell_orbit* orbit, double JD, struc t ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_ell_geo_rect_posn (struct ln_ell_orbit* orbit, d ouble JD, struct ln_rect_posn* posn); | |||
/*! \fn void ln_get_ell_helio_rect_posn (struct ln_ell_orbit* orbit, double JD, struct ln_rect_posn* posn); | /*! \fn void ln_get_ell_helio_rect_posn (struct ln_ell_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
* \brief Calculate the objects rectangular heliocentric position. | * \brief Calculate the objects rectangular heliocentric position. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
void ln_get_ell_helio_rect_posn (struct ln_ell_orbit* orbit, double JD, str uct ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_ell_helio_rect_posn (struct ln_ell_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
/*! \fn double ln_get_ell_orbit_len (struct ln_ell_orbit * orbit); | /*! \fn double ln_get_ell_orbit_len (struct ln_ell_orbit * orbit); | |||
* \brief Calculate the orbital length in AU. | * \brief Calculate the orbital length in AU. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_orbit_len (struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_orbit_len (struct ln_ell_orbit * orbit); | |||
/*! \fn double ln_get_ell_orbit_vel (double JD, struct ln_ell_orbit * orbit ); | /*! \fn double ln_get_ell_orbit_vel (double JD, struct ln_ell_orbit * orbit ); | |||
* \brief Calculate orbital velocity in km/s. | * \brief Calculate orbital velocity in km/s. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_orbit_vel (double JD, struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_orbit_vel (double JD, struct ln_ell_orbit * orbit); | |||
/*! \fn double ln_get_ell_orbit_pvel (struct ln_ell_orbit * orbit); | /*! \fn double ln_get_ell_orbit_pvel (struct ln_ell_orbit * orbit); | |||
* \brief Calculate orbital velocity at perihelion in km/s. | * \brief Calculate orbital velocity at perihelion in km/s. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_orbit_pvel (struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_orbit_pvel (struct ln_ell_orbit * orbit); | |||
/*! \fn double ln_get_ell_orbit_avel (struct ln_ell_orbit * orbit); | /*! \fn double ln_get_ell_orbit_avel (struct ln_ell_orbit * orbit); | |||
* \ingroup elliptic | * \ingroup elliptic | |||
* \brief Calculate the orbital velocity at aphelion in km/s. | * \brief Calculate the orbital velocity at aphelion in km/s. | |||
*/ | */ | |||
double ln_get_ell_orbit_avel (struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_orbit_avel (struct ln_ell_orbit * orbit); | |||
/*! \fn double ln_get_ell_body_phase_angle (double JD, struct ln_ell_orbit * orbit); | /*! \fn double ln_get_ell_body_phase_angle (double JD, struct ln_ell_orbit * orbit); | |||
* \ingroup elliptic | * \ingroup elliptic | |||
* \brief Calculate the pase angle of the body. The angle Sun - body - Earth . | * \brief Calculate the phase angle of the body. The angle Sun - body - Eart h. | |||
*/ | */ | |||
double ln_get_ell_body_phase_angle (double JD, struct ln_ell_orbit * orbit) ; | double LIBNOVA_EXPORT ln_get_ell_body_phase_angle (double JD, struct ln_ell _orbit * orbit); | |||
/*! \fn double ln_get_ell_body_elong (double JD, struct ln_ell_orbit * orbi t); | /*! \fn double ln_get_ell_body_elong (double JD, struct ln_ell_orbit * orbi t); | |||
* \ingroup elliptic | * \ingroup elliptic | |||
* \brief Calculate the bodies elongation to the Sun.. | * \brief Calculate the bodies elongation to the Sun.. | |||
*/ | */ | |||
double ln_get_ell_body_elong (double JD, struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_body_elong (double JD, struct ln_ell_orbit * orbit); | |||
/*! | /*! | |||
* \fn double ln_get_ell_body_solar_dist (double JD, struct ln_ell_orbit * o rbit) | * \fn double ln_get_ell_body_solar_dist (double JD, struct ln_ell_orbit * o rbit) | |||
* \brief Calculate the distance between a body and the Sun | * \brief Calculate the distance between a body and the Sun | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_body_solar_dist (double JD, struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_body_solar_dist (double JD, struct ln_ell_ orbit * orbit); | |||
/*! | /*! | |||
* \fn double ln_get_ell_body_earth_dist (double JD, struct ln_ell_orbit * o rbit) | * \fn double ln_get_ell_body_earth_dist (double JD, struct ln_ell_orbit * o rbit) | |||
* \brief Calculate the distance between a body and the Earth | * \brief Calculate the distance between a body and the Earth | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_body_earth_dist (double JD, struct ln_ell_orbit * orbit); | double LIBNOVA_EXPORT ln_get_ell_body_earth_dist (double JD, struct ln_ell_ orbit * orbit); | |||
/*! | /*! | |||
* \fn void ln_get_ell_body_equ_coords (double JD, struct ln_ell_orbit * orb it, struct ln_equ_posn * posn) | * \fn void ln_get_ell_body_equ_coords (double JD, struct ln_ell_orbit * orb it, struct ln_equ_posn * posn) | |||
* \brief Calculate a bodies equatorial coords | * \brief Calculate a bodies equatorial coords | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
void ln_get_ell_body_equ_coords (double JD, struct ln_ell_orbit * orbit, st ruct ln_equ_posn * posn); | void LIBNOVA_EXPORT ln_get_ell_body_equ_coords (double JD, struct ln_ell_or bit * orbit, struct ln_equ_posn * posn); | |||
/*! \fn double ln_get_ell_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_ell_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | * \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
int ln_get_ell_body_rst (double JD, struct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_ell_body_rst (double JD, struct ln_lnlat_posn * o bserver, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_ell_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | /*! \fn double ln_get_ell_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | * \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
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); | int LIBNOVA_EXPORT 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); | |||
/*! \fn double ln_get_ell_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_ell_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | * \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
int ln_get_ell_body_next_rst (double JD, struct ln_lnlat_posn * observer, s truct ln_ell_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_ell_body_next_rst (double JD, struct ln_lnlat_pos n * observer, struct ln_ell_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_ell_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_ell_orbit * orbit, double horizon, struct ln_rs t_time * rst); | /*! \fn double ln_get_ell_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_ell_orbit * orbit, double horizon, struct ln_rs t_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | * \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
int ln_get_ell_body_next_rst_horizon (double JD, struct ln_lnlat_posn * obs erver, struct ln_ell_orbit * orbit, double horizon, struct ln_rst_time * rs t); | int LIBNOVA_EXPORT ln_get_ell_body_next_rst_horizon (double JD, struct ln_l nlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, struct l n_rst_time * rst); | |||
/*! \fn double ln_get_ell_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | /*! \fn double ln_get_ell_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | * \brief Calculate the time of rise, set and transit for a body with an ell iptic orbit. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
int ln_get_ell_body_next_rst_horizon_future (double JD, struct ln_lnlat_pos n * observer, struct ln_ell_orbit * orbit, double horizon, int day_limit, s truct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_ell_body_next_rst_horizon_future (double JD, stru ct ln_lnlat_posn * observer, struct ln_ell_orbit * orbit, double horizon, i nt day_limit, struct ln_rst_time * rst); | |||
/*!\fn double ln_get_ell_last_perihelion (double epoch_JD, double M, double n); | /*!\fn double ln_get_ell_last_perihelion (double epoch_JD, double M, double n); | |||
* \brief Calculate the julian day of the last perihelion. | * \brief Calculate the julian day of the last perihelion. | |||
* \ingroup elliptic | * \ingroup elliptic | |||
*/ | */ | |||
double ln_get_ell_last_perihelion (double epoch_JD, double M, double n); | double LIBNOVA_EXPORT ln_get_ell_last_perihelion (double epoch_JD, double M , double n); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 25 change blocks. | ||||
25 lines changed or deleted | 25 lines changed or added | |||
hyperbolic_motion.h | hyperbolic_motion.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
* | * | |||
* Functions relating to the Hyperbolic motion of bodies. | * Functions relating to the Hyperbolic motion of bodies. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_solve_hyp_barker (double Q1, double G, double t); | /*! \fn double ln_solve_hyp_barker (double Q1, double G, double t); | |||
* \brief Solve Barkers equation. | * \brief Solve Barkers equation. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
double ln_solve_hyp_barker (double Q1, double G, double t); | double LIBNOVA_EXPORT ln_solve_hyp_barker (double Q1, double G, double t); | |||
/*! \fn double ln_get_hyp_true_anomaly (double q, double e, double t); | /*! \fn double ln_get_hyp_true_anomaly (double q, double e, double t); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the true anomaly. | * \brief Calculate the true anomaly. | |||
*/ | */ | |||
double ln_get_hyp_true_anomaly (double q, double e, double t); | double LIBNOVA_EXPORT ln_get_hyp_true_anomaly (double q, double e, double t ); | |||
/*! \fn double ln_get_hyp_radius_vector (double q, double e, double t); | /*! \fn double ln_get_hyp_radius_vector (double q, double e, double t); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the radius vector. | * \brief Calculate the radius vector. | |||
*/ | */ | |||
double ln_get_hyp_radius_vector (double q, double e, double t); | double LIBNOVA_EXPORT ln_get_hyp_radius_vector (double q, double e, double t); | |||
/*! \fn void ln_get_hyp_geo_rect_posn (struct ln_hyp_orbit* orbit, double J D, struct ln_rect_posn* posn); | /*! \fn void ln_get_hyp_geo_rect_posn (struct ln_hyp_orbit* orbit, double J D, struct ln_rect_posn* posn); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate an objects rectangular geocentric position. | * \brief Calculate an objects rectangular geocentric position. | |||
*/ | */ | |||
void ln_get_hyp_geo_rect_posn (struct ln_hyp_orbit* orbit, double JD, struc t ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_hyp_geo_rect_posn (struct ln_hyp_orbit* orbit, d ouble JD, struct ln_rect_posn* posn); | |||
/*! \fn void ln_get_hyp_helio_rect_posn (struct ln_hyp_orbit* orbit, double JD, struct ln_rect_posn* posn); | /*! \fn void ln_get_hyp_helio_rect_posn (struct ln_hyp_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate an objects rectangular heliocentric position. | * \brief Calculate an objects rectangular heliocentric position. | |||
*/ | */ | |||
void ln_get_hyp_helio_rect_posn (struct ln_hyp_orbit* orbit, double JD, str uct ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_hyp_helio_rect_posn (struct ln_hyp_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
/*! | /*! | |||
* \fn void ln_get_hyp_body_equ_coords (double JD, struct ln_hyp_orbit * orb it, struct ln_equ_posn * posn) | * \fn void ln_get_hyp_body_equ_coords (double JD, struct ln_hyp_orbit * orb it, struct ln_equ_posn * posn) | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate a bodies equatorial coordinates. | * \brief Calculate a bodies equatorial coordinates. | |||
*/ | */ | |||
void ln_get_hyp_body_equ_coords (double JD, struct ln_hyp_orbit * orbit, st ruct ln_equ_posn * posn); | void LIBNOVA_EXPORT ln_get_hyp_body_equ_coords (double JD, struct ln_hyp_or bit * orbit, struct ln_equ_posn * posn); | |||
/*! | /*! | |||
* \fn double ln_get_hyp_body_earth_dist (double JD, struct ln_hyp_orbit * o rbit) | * \fn double ln_get_hyp_body_earth_dist (double JD, struct ln_hyp_orbit * o rbit) | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the distance between a body and the Earth. | * \brief Calculate the distance between a body and the Earth. | |||
*/ | */ | |||
double ln_get_hyp_body_earth_dist (double JD, struct ln_hyp_orbit * orbit); | double LIBNOVA_EXPORT ln_get_hyp_body_earth_dist (double JD, struct ln_hyp_ orbit * orbit); | |||
/*! | /*! | |||
* \fn double ln_get_hyp_body_solar_dist (double JD, struct ln_hyp_orbit * o rbit) | * \fn double ln_get_hyp_body_solar_dist (double JD, struct ln_hyp_orbit * o rbit) | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the distance between a body and the Sun. | * \brief Calculate the distance between a body and the Sun. | |||
*/ | */ | |||
double ln_get_hyp_body_solar_dist (double JD, struct ln_hyp_orbit * orbit); | double LIBNOVA_EXPORT ln_get_hyp_body_solar_dist (double JD, struct ln_hyp_ orbit * orbit); | |||
/*! \fn double ln_get_hyp_body_phase_angle (double JD, struct ln_hyp_orbit * orbit); | /*! \fn double ln_get_hyp_body_phase_angle (double JD, struct ln_hyp_orbit * orbit); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the pase angle of the body. | * \brief Calculate the phase angle of the body. | |||
*/ | */ | |||
double ln_get_hyp_body_phase_angle (double JD, struct ln_hyp_orbit * orbit) ; | double LIBNOVA_EXPORT ln_get_hyp_body_phase_angle (double JD, struct ln_hyp _orbit * orbit); | |||
/*! \fn double ln_get_hyp_body_elong (double JD, struct ln_hyp_orbit * orbi t); | /*! \fn double ln_get_hyp_body_elong (double JD, struct ln_hyp_orbit * orbi t); | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
* \brief Calculate the bodies elongation to the Sun. | * \brief Calculate the bodies elongation to the Sun. | |||
*/ | */ | |||
double ln_get_hyp_body_elong (double JD, struct ln_hyp_orbit * orbit); | double LIBNOVA_EXPORT ln_get_hyp_body_elong (double JD, struct ln_hyp_orbit * orbit); | |||
/*! \fn double ln_get_hyp_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_hyp_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with a hype rbolic orbit. | * \brief Calculate the time of rise, set and transit for a body with a hype rbolic orbit. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
int ln_get_hyp_body_rst (double JD, struct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_hyp_body_rst (double JD, struct ln_lnlat_posn * o bserver, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_hyp_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | /*! \fn double ln_get_hyp_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with a hype rbolic orbit. | * \brief Calculate the time of rise, set and transit for a body with a hype rbolic orbit. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
int ln_get_hyp_body_rst_horizon (double JD, struct ln_lnlat_posn * observer , struct ln_hyp_orbit * orbit, double horizon, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_hyp_body_rst_horizon (double JD, struct ln_lnlat_ posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct ln_rst _time * rst); | |||
/*! \fn double ln_get_hyp_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_hyp_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
int ln_get_hyp_body_next_rst (double JD, struct ln_lnlat_posn * observer, s truct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_hyp_body_next_rst (double JD, struct ln_lnlat_pos n * observer, struct ln_hyp_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_hyp_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct ln_rs t_time * rst); | /*! \fn double ln_get_hyp_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct ln_rs t_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
int ln_get_hyp_body_next_rst_horizon (double JD, struct ln_lnlat_posn * obs erver, struct ln_hyp_orbit * orbit, double horizon, struct ln_rst_time * rs t); | int LIBNOVA_EXPORT ln_get_hyp_body_next_rst_horizon (double JD, struct ln_l nlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, struct l n_rst_time * rst); | |||
/*! \fn double ln_get_hyp_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | /*! \fn double ln_get_hyp_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an hyp erbolic orbit. | |||
* \ingroup hyperbolic | * \ingroup hyperbolic | |||
*/ | */ | |||
int ln_get_hyp_body_next_rst_horizon_future (double JD, struct ln_lnlat_pos n * observer, struct ln_hyp_orbit * orbit, double horizon, int day_limit, s truct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_hyp_body_next_rst_horizon_future (double JD, stru ct ln_lnlat_posn * observer, struct ln_hyp_orbit * orbit, double horizon, i nt day_limit, struct ln_rst_time * rst); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 16 change blocks. | ||||
16 lines changed or deleted | 16 lines changed or added | |||
julian_day.h | julian_day.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | */ | |||
#ifndef _LN_JULIAN_DAY_H | #ifndef _LN_JULIAN_DAY_H | |||
#define _LN_JULIAN_DAY_H | #define _LN_JULIAN_DAY_H | |||
#ifdef __WIN32 | #ifdef __WIN32 | |||
#define __WIN32__ | #define __WIN32__ | |||
#endif | #endif | |||
#ifndef __WIN32__ | ||||
#include <time.h> | #include <time.h> | |||
#endif | ||||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup calendar General Calendar Functions | /*! \defgroup calendar General Calendar Functions | |||
*/ | */ | |||
/*! \fn double ln_get_julian_day (struct ln_date * date) | /*! \fn double ln_get_julian_day (struct ln_date * date) | |||
* \ingroup calendar | * \ingroup calendar | |||
* \brief Calculate the julian day from date. | * \brief Calculate the julian day from date. | |||
*/ | */ | |||
double ln_get_julian_day (struct ln_date * date); | double LIBNOVA_EXPORT ln_get_julian_day (struct ln_date * date); | |||
/*! \fn void ln_get_date (double JD, struct ln_date * date) | /*! \fn void ln_get_date (double JD, struct ln_date * date) | |||
* \ingroup calendar | * \ingroup calendar | |||
* \brief Calculate the date from the julian day. | * \brief Calculate the date from the julian day. | |||
*/ | */ | |||
void ln_get_date (double JD, struct ln_date * date); | void LIBNOVA_EXPORT ln_get_date (double JD, struct ln_date * date); | |||
/*! \fn void ln_get_date_from_timet (time_t * t, struct ln_date * date) | /*! \fn void ln_get_date_from_timet (time_t * t, struct ln_date * date) | |||
* \\ingroup calendar | * \\ingroup calendar | |||
* \brief Set date from system time | * \brief Set date from system time | |||
*/ | */ | |||
#ifndef __WIN32__ | #ifndef __WIN32__ | |||
void ln_get_date_from_timet (time_t * t, struct ln_date * date); | void LIBNOVA_EXPORT ln_get_date_from_timet (time_t * t, struct ln_date * da te); | |||
#endif | #endif | |||
/*! \fn void ln_get_date_from_tm (struct tm * t, struct ln_date * date) | /*! \fn void ln_get_date_from_tm (struct tm * t, struct ln_date * date) | |||
* \\ingroup calendar | * \\ingroup calendar | |||
* \brief Set date from system tm structure | * \brief Set date from system tm structure | |||
*/ | */ | |||
void ln_get_date_from_tm (struct tm * t, struct ln_date * date); | void LIBNOVA_EXPORT ln_get_date_from_tm (struct tm * t, struct ln_date * da te); | |||
/*! \fn void ln_get_local_date (double JD, struct ln_zonedate * zonedate) | /*! \fn void ln_get_local_date (double JD, struct ln_zonedate * zonedate) | |||
* \ingroup calender | * \ingroup calender | |||
* \brief Calculate the zone date from the Julian day | * \brief Calculate the zone date from the Julian day | |||
*/ | */ | |||
void ln_get_local_date (double JD, struct ln_zonedate * zonedate); | void LIBNOVA_EXPORT ln_get_local_date (double JD, struct ln_zonedate * zone date); | |||
/*! \fn unsigned int ln_get_day_of_week (struct ln_date * date) | /*! \fn unsigned int ln_get_day_of_week (struct ln_date * date) | |||
* \ingroup calendar | * \ingroup calendar | |||
* \brief Calculate day of the week. | * \brief Calculate day of the week. | |||
*/ | */ | |||
unsigned int ln_get_day_of_week (struct ln_date *date); | unsigned int LIBNOVA_EXPORT ln_get_day_of_week (struct ln_date *date); | |||
/*! \fn double ln_get_julian_from_sys () | /*! \fn double ln_get_julian_from_sys () | |||
* \brief Calculate julian day from system time. | * \brief Calculate julian day from system time. | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
double ln_get_julian_from_sys (); | double LIBNOVA_EXPORT ln_get_julian_from_sys (); | |||
/*! \fn void ln_get_date_from_sys (struct ln_date * date) | /*! \fn void ln_get_date_from_sys (struct ln_date * date) | |||
* \brief Calculate date from system date | * \brief Calculate date from system date | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
void ln_get_date_from_sys (struct ln_date * date); | void LIBNOVA_EXPORT ln_get_date_from_sys (struct ln_date * date); | |||
/*! \fn double ln_get_julian_from_timet (time_t * time) | /*! \fn double ln_get_julian_from_timet (time_t * time) | |||
* \brief Calculate julian day from time_t | * \brief Calculate julian day from time_t | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
#ifndef __WIN32__ | double LIBNOVA_EXPORT ln_get_julian_from_timet (time_t * in_time); | |||
double ln_get_julian_from_timet (time_t * in_time); | ||||
#endif | ||||
/*! \fn void ln_get_timet_from_julian (double JD, time_t * in_time) | /*! \fn void ln_get_timet_from_julian (double JD, time_t * in_time) | |||
* \brief Calculate time_t from julian day | * \brief Calculate time_t from julian day | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
#ifndef __WIN32__ | void LIBNOVA_EXPORT ln_get_timet_from_julian (double JD, time_t * in_time); | |||
void ln_get_timet_from_julian (double JD, time_t * in_time); | ||||
#endif | ||||
/*! \fn double ln_get_julian_local_date(struct ln_zonedate* zonedate) | /*! \fn double ln_get_julian_local_date(struct ln_zonedate* zonedate) | |||
* \brief Calculate Julian day from local date | * \brief Calculate Julian day from local date | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
double ln_get_julian_local_date(struct ln_zonedate* zonedate); | double LIBNOVA_EXPORT ln_get_julian_local_date(struct ln_zonedate* zonedate ); | |||
/*! \fn int ln_get_date_from_mpc (struct ln_date* date, char* mpc_date) | /*! \fn int ln_get_date_from_mpc (struct ln_date* date, char* mpc_date) | |||
* \brief Calculate the local date from the a MPC packed date. | * \brief Calculate the local date from the a MPC packed date. | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
int ln_get_date_from_mpc (struct ln_date* date, char* mpc_date); | int LIBNOVA_EXPORT ln_get_date_from_mpc (struct ln_date* date, char* mpc_da te); | |||
/*! \fn double ln_get_julian_from_mpc (char* mpc_date) | /*! \fn double ln_get_julian_from_mpc (char* mpc_date) | |||
* \brief Calculate the julian day from the a MPC packed date. | * \brief Calculate the julian day from the a MPC packed date. | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
double ln_get_julian_from_mpc (char* mpc_date); | double LIBNOVA_EXPORT ln_get_julian_from_mpc (char* mpc_date); | |||
/*! \fn void ln_date_to_zonedate (struct ln_date * date, struct ln_zonedate * zonedate, long gmtoff) | /*! \fn void ln_date_to_zonedate (struct ln_date * date, struct ln_zonedate * zonedate, long gmtoff) | |||
* \brief convert ln_date to ln_zonedate, zero zone info | * \brief convert ln_date to ln_zonedate, zero zone info | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_date_to_zonedate (struct ln_date * date, struct ln_zonedate * zoned ate, long gmtoff); | void LIBNOVA_EXPORT ln_date_to_zonedate (struct ln_date * date, struct ln_z onedate * zonedate, long gmtoff); | |||
/*! \fn void ln_zonedate_to_date (struct ln_zonedate * zonedate, struct ln_ date * date) | /*! \fn void ln_zonedate_to_date (struct ln_zonedate * zonedate, struct ln_ date * date) | |||
* \brief convert ln_zonedate to ln_date | * \brief convert ln_zonedate to ln_date | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_zonedate_to_date (struct ln_zonedate * zonedate, struct ln_date * d ate); | void LIBNOVA_EXPORT ln_zonedate_to_date (struct ln_zonedate * zonedate, str uct ln_date * date); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 17 change blocks. | ||||
21 lines changed or deleted | 15 lines changed or added | |||
jupiter.h | jupiter.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup jupiter Jupiter | /*! \defgroup jupiter Jupiter | |||
* | * | |||
* Functions relating to the planet Jupiter. | * Functions relating to the planet Jupiter. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_jupiter_equ_sdiam (double JD) | /*! \fn double ln_get_jupiter_equ_sdiam (double JD) | |||
* \brief Calcaluate the eqatorial semidiameter of Jupiter in arc seconds. | * \brief Calculate the equatorial semidiameter of Jupiter in arc seconds. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
*/ | */ | |||
double ln_get_jupiter_equ_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_equ_sdiam (double JD); | |||
/*! \fn double ln_get_jupiter_pol_sdiam (double JD) | /*! \fn double ln_get_jupiter_pol_sdiam (double JD) | |||
* \brief Calcaluate the polar semidiameter of Jupiter in arc seconds. | * \brief Calculate the polar semidiameter of Jupiter in arc seconds. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
*/ | */ | |||
double ln_get_jupiter_pol_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_pol_sdiam (double JD); | |||
/*! \fn double ln_get_jupiter_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | /*! \fn double ln_get_jupiter_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Jupiter. | * \brief Calculate the time of rise, set and transit for Jupiter. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
*/ | */ | |||
int ln_get_jupiter_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_jupiter_rst (double JD, struct ln_lnlat_posn * ob server, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_jupiter_helio_coords (double JD, struct ln_helio_posn * position); | /*! \fn void ln_get_jupiter_helio_coords (double JD, struct ln_helio_posn * position); | |||
* \brief Calculate Jupiter's heliocentric coordinates | * \brief Calculate Jupiter's heliocentric coordinates | |||
* \ingroup jupiter | * \ingroup jupiter | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_jupiter_helio_coords (double JD, struct ln_helio_posn * positio n); | void LIBNOVA_EXPORT ln_get_jupiter_helio_coords (double JD, struct ln_helio _posn * position); | |||
/*! \fn void ln_get_jupiter_equ_coords (double JD, struct ln_equ_posn * pos ition); | /*! \fn void ln_get_jupiter_equ_coords (double JD, struct ln_equ_posn * pos ition); | |||
* \brief Calculate Jupiter's equatorial coordinates. | * \brief Calculate Jupiter's equatorial coordinates. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_jupiter_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_jupiter_equ_coords (double JD, struct ln_equ_pos n * position); | |||
/*! \fn double ln_get_jupiter_earth_dist (double JD); | /*! \fn double ln_get_jupiter_earth_dist (double JD); | |||
* \brief Calculate the distance between Jupiter and the Earth. | * \brief Calculate the distance between Jupiter and the Earth. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_jupiter_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_earth_dist (double JD); | |||
/*! \fn double ln_get_jupiter_solar_dist (double JD); | /*! \fn double ln_get_jupiter_solar_dist (double JD); | |||
* \brief Calculate the distance between Jupiter and the Sun. | * \brief Calculate the distance between Jupiter and the Sun. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_jupiter_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_solar_dist (double JD); | |||
/*! \fn double ln_get_jupiter_magnitude (double JD); | /*! \fn double ln_get_jupiter_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Jupiter | * \brief Calculate the visible magnitude of Jupiter | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \return Visible magnitude of Jupiter | * \return Visible magnitude of Jupiter | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_jupiter_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_magnitude (double JD); | |||
/*! \fn double ln_get_jupiter_disk (double JD); | /*! \fn double ln_get_jupiter_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Jupiter's disk | * \brief Calculate the illuminated fraction of Jupiter's disk | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \return Illuminated fraction of Jupiter's disk | * \return Illuminated fraction of Jupiter's disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_jupiter_disk (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_disk (double JD); | |||
/*! \fn double ln_get_jupiter_phase (double JD); | /*! \fn double ln_get_jupiter_phase (double JD); | |||
* \brief Calculate the phase angle of Jupiter. | * \brief Calculate the phase angle of Jupiter. | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \return Phase angle of Jupiter (degrees) | * \return Phase angle of Jupiter (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_jupiter_phase (double JD); | double LIBNOVA_EXPORT ln_get_jupiter_phase (double JD); | |||
/*! \fn void ln_get_jupiter_rect_helio (double JD, struct ln_rect_posn * po sition) | /*! \fn void ln_get_jupiter_rect_helio (double JD, struct ln_rect_posn * po sition) | |||
* \ingroup jupiter | * \ingroup jupiter | |||
* \brief Calculate Jupiters rectangular heliocentric coordinates. | * \brief Calculate Jupiters rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_jupiter_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_jupiter_rect_helio (double JD, struct ln_rect_po sn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 13 change blocks. | ||||
13 lines changed or deleted | 13 lines changed or added | |||
libnova.h | libnova.h | |||
---|---|---|---|---|
skipping to change at line 61 | skipping to change at line 61 | |||
* - Atmospheric refraction | * - Atmospheric refraction | |||
* - Rise, Set and Transit times. | * - Rise, Set and Transit times. | |||
* - Semidiameters of the Sun, Moon, Planets and asteroids. | * - Semidiameters of the Sun, Moon, Planets and asteroids. | |||
* - Angular separation of bodies | * - Angular separation of bodies | |||
* - Hyperbolic motion of bodies | * - Hyperbolic motion of bodies | |||
* | * | |||
* \section docs Documentation | * \section docs Documentation | |||
* API documentation for libnova is included in the source. It can also be f ound in this website and an offline tarball is available <A href="http://li bnova.sf.net/libnovadocs.tar.gz">here</A>. | * API documentation for libnova is included in the source. It can also be f ound in this website and an offline tarball is available <A href="http://li bnova.sf.net/libnovadocs.tar.gz">here</A>. | |||
* | * | |||
* \section download Download | * \section download Download | |||
* The latest released version of libnova is 0.11. | * The latest released version of libnova is 0.12.2. | |||
* It is available for download <A href="http://sf.net/project/showfiles.php ?group_id=57697">here.</A> | * It is available for download <A href="http://sf.net/project/showfiles.php ?group_id=57697">here.</A> | |||
* | * | |||
* \section cvs CVS | * \section cvs CVS | |||
* The latest CVS version of libnova is available via CVS <A href="http://sf .net/cvs/?group_id=57697">here.</A> | * The latest CVS version of libnova is available via CVS <A href="http://sf .net/cvs/?group_id=57697">here.</A> | |||
* | * | |||
* \section licence Licence | * \section licence Licence | |||
* libnova is released under the <A href="http://www.gnu.org">GNU</A> LGPL. | * libnova is released under the <A href="http://www.gnu.org">GNU</A> LGPL. | |||
* | * | |||
* \section help Help | * \section help Help | |||
* If you are interested in helping in the future development of libnova, th en please get in touch. | * If you are interested in helping in the future development of libnova, th en please get in touch. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
ln_types.h | ln_types.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | */ | |||
#ifndef _LN_TYPES_H | #ifndef _LN_TYPES_H | |||
#define _LN_TYPES_H | #define _LN_TYPES_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/* define some usefull constants if they are not already defined */ | #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || def | |||
#ifndef M_PI_2 | ined( __BCPLUSPLUS__) || defined( __MWERKS__) | |||
# if defined( LIBNOVA_STATIC ) | ||||
# define LIBNOVA_EXPORT | ||||
# elif defined( LIBNOVA_SHARED ) | ||||
# define LIBNOVA_EXPORT __declspec(dllexport) | ||||
# else | ||||
# define LIBNOVA_EXPORT __declspec(dllimport) | ||||
# endif | ||||
#else | ||||
# define LIBNOVA_EXPORT | ||||
#endif | ||||
/* define some useful constants if they are not already defined */ | ||||
#if(!defined(M_PI_2) && (!defined(_MSC_VER) || !defined(_USE_MATH_DEFINES)) | ||||
) | ||||
#define M_PI_2 1.5707963267948966192313216916398 | #define M_PI_2 1.5707963267948966192313216916398 | |||
#define M_PI_4 0.78539816339744830961566084581988 | #define M_PI_4 0.78539816339744830961566084581988 | |||
#define M_PI 3.1415926535897932384626433832795 | #define M_PI 3.1415926535897932384626433832795 | |||
#endif | #endif | |||
/* sideral day lenght in seconds and days (for JD)*/ | /* sideral day length in seconds and days (for JD)*/ | |||
#define LN_SIDEREAL_DAY_SEC 86164.09 | #define LN_SIDEREAL_DAY_SEC 86164.09 | |||
#define LN_SIDEREAL_DAY_DAY LN_SIDEREAL_DAY_SEC/86400 | #define LN_SIDEREAL_DAY_DAY LN_SIDEREAL_DAY_SEC/86400 | |||
/* 1.1.2000 Julian Day & others */ | /* 1.1.2000 Julian Day & others */ | |||
#define JD2000 2451545.0 | #define JD2000 2451545.0 | |||
#define JD2050 2469807.50 | #define JD2050 2469807.50 | |||
#define B1900 2415020.3135 | #define B1900 2415020.3135 | |||
#define B1950 2433282.4235 | #define B1950 2433282.4235 | |||
skipping to change at line 113 | skipping to change at line 125 | |||
*/ | */ | |||
struct ln_hms | struct ln_hms | |||
{ | { | |||
unsigned short hours; /*!< Hours. Valid 0 - 23 */ | unsigned short hours; /*!< Hours. Valid 0 - 23 */ | |||
unsigned short minutes; /*!< Minutes. Valid 0 - 59 */ | unsigned short minutes; /*!< Minutes. Valid 0 - 59 */ | |||
double seconds; /*!< Seconds. Valid 0 - 59.9 999... */ | double seconds; /*!< Seconds. Valid 0 - 59.9 999... */ | |||
}; | }; | |||
/*! \struct lnh_equ_posn | /*! \struct lnh_equ_posn | |||
** \brief Right Acsension and Declination. | ** \brief Right Ascension and Declination. | |||
* | * | |||
* Human readable Equatorial Coordinates. | * Human readable Equatorial Coordinates. | |||
*/ | */ | |||
struct lnh_equ_posn | struct lnh_equ_posn | |||
{ | { | |||
struct ln_hms ra; /*!< RA. Object right ascension.*/ | struct ln_hms ra; /*!< RA. Object right ascension.*/ | |||
struct ln_dms dec; /*!< DEC. Object declination */ | struct ln_dms dec; /*!< DEC. Object declination */ | |||
}; | }; | |||
End of changes. 3 change blocks. | ||||
4 lines changed or deleted | 18 lines changed or added | |||
lunar.h | lunar.h | |||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
#endif | #endif | |||
/*! \defgroup lunar Lunar | /*! \defgroup lunar Lunar | |||
* | * | |||
* Functions relating to the Moon. | * Functions relating to the Moon. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_lunar_sdiam (double JD) | /*! \fn double ln_get_lunar_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of the Moon in arc seconds. | * \brief Calculate the semidiameter of the Moon in arc seconds. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_lunar_sdiam (double JD); | |||
/*! \fn double ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | /*! \fn double ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for the Moon. | * \brief Calculate the time of rise, set and transit for the Moon. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
int ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | int LIBNOVA_EXPORT ln_get_lunar_rst (double JD, struct ln_lnlat_posn * obse rver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double precision); | /*! \fn void ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double precision); | |||
* \brief Calculate the rectangular geocentric lunar cordinates. | * \brief Calculate the rectangular geocentric lunar cordinates. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
/* ELP 2000-82B theory */ | /* ELP 2000-82B theory */ | |||
void ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double p recision); | void LIBNOVA_EXPORT ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double precision); | |||
/*! \fn void ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_posn * position, double precision); | /*! \fn void ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_posn * position, double precision); | |||
* \brief Calculate lunar equatorial coordinates. | * \brief Calculate lunar equatorial coordinates. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
void ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_posn * position , double precision); | void LIBNOVA_EXPORT ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_ posn * position, double precision); | |||
/*! \fn void ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * posit ion); | /*! \fn void ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * posit ion); | |||
* \brief Calculate lunar equatorial coordinates. | * \brief Calculate lunar equatorial coordinates. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
void ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_posn * pos ition, double precision); | /*! \fn void ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_posn * pos ition, double precision); | |||
* \brief Calculate lunar ecliptical coordinates. | * \brief Calculate lunar ecliptical coordinates. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
void ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_posn * position, d ouble precision); | void LIBNOVA_EXPORT ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_pos n * position, double precision); | |||
/*! \fn double ln_get_lunar_phase (double JD); | /*! \fn double ln_get_lunar_phase (double JD); | |||
* \brief Calculate the phase angle of the Moon. | * \brief Calculate the phase angle of the Moon. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_phase (double JD); | double LIBNOVA_EXPORT ln_get_lunar_phase (double JD); | |||
/*! \fn double ln_get_lunar_disk (double JD); | /*! \fn double ln_get_lunar_disk (double JD); | |||
* \brief Calculate the illuminated fraction of the Moons disk | * \brief Calculate the illuminated fraction of the Moons disk | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_disk (double JD); | double LIBNOVA_EXPORT ln_get_lunar_disk (double JD); | |||
/*! \fn double ln_get_lunar_earth_dist (double JD); | /*! \fn double ln_get_lunar_earth_dist (double JD); | |||
* \brief Calculate the distance between the Earth and the Moon. | * \brief Calculate the distance between the Earth and the Moon. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_lunar_earth_dist (double JD); | |||
/*! \fn double ln_get_lunar_bright_limb (double JD); | /*! \fn double ln_get_lunar_bright_limb (double JD); | |||
* \brief Calculate the position angle of the Moon's bright limb. | * \brief Calculate the position angle of the Moon's bright limb. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_bright_limb (double JD); | double LIBNOVA_EXPORT ln_get_lunar_bright_limb (double JD); | |||
/*! \fn double ln_get_lunar_long_asc_node (double JD); | /*! \fn double ln_get_lunar_long_asc_node (double JD); | |||
* \brief Calculate the longitude of the Moon's mean ascending node. | * \brief Calculate the longitude of the Moon's mean ascending node. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_long_asc_node (double JD); | double LIBNOVA_EXPORT ln_get_lunar_long_asc_node (double JD); | |||
/*! \fn double ln_get_lunar_long_perigee (double JD); | /*! \fn double ln_get_lunar_long_perigee (double JD); | |||
* \brief Calculate the longitude of the Moon's mean perigee. | * \brief Calculate the longitude of the Moon's mean perigee. | |||
* \ingroup lunar | * \ingroup lunar | |||
*/ | */ | |||
double ln_get_lunar_long_perigee (double JD); | double LIBNOVA_EXPORT ln_get_lunar_long_perigee (double JD); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 13 change blocks. | ||||
13 lines changed or deleted | 13 lines changed or added | |||
mars.h | mars.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup mars Mars | /*! \defgroup mars Mars | |||
* | * | |||
* Functions relating to the planet Mars. | * Functions relating to the planet Mars. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_mars_sdiam (double JD) | /*! \fn double ln_get_mars_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Mars in arc seconds. | * \brief Calculate the semidiameter of Mars in arc seconds. | |||
* \ingroup mars | * \ingroup mars | |||
*/ | */ | |||
double ln_get_mars_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_mars_sdiam (double JD); | |||
/*! \fn double ln_get_mars_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); | /*! \fn double ln_get_mars_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Mars. | * \brief Calculate the time of rise, set and transit for Mars. | |||
* \ingroup mars | * \ingroup mars | |||
*/ | */ | |||
int ln_get_mars_rst (double JD, struct ln_lnlat_posn * observer, struct ln_ rst_time * rst); | int LIBNOVA_EXPORT ln_get_mars_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_mars_helio_coords (double JD, struct ln_helio_posn * po sition); | /*! \fn void ln_get_mars_helio_coords (double JD, struct ln_helio_posn * po sition); | |||
* \brief Calculate Mars heliocentric coordinates | * \brief Calculate Mars heliocentric coordinates | |||
* \ingroup mars | * \ingroup mars | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_mars_helio_coords (double JD, struct ln_helio_posn * position); | void LIBNOVA_EXPORT ln_get_mars_helio_coords (double JD, struct ln_helio_po sn * position); | |||
/*! \fn void ln_get_mars_equ_coords (double JD, struct ln_equ_posn * positi on); | /*! \fn void ln_get_mars_equ_coords (double JD, struct ln_equ_posn * positi on); | |||
* \brief Calculate Mars equatorial coordinates | * \brief Calculate Mars equatorial coordinates | |||
* \ingroup mars | * \ingroup mars | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_mars_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_mars_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn double ln_get_mars_earth_dist (double JD); | /*! \fn double ln_get_mars_earth_dist (double JD); | |||
* \brief Calculate the distance between Mars and the Earth. | * \brief Calculate the distance between Mars and the Earth. | |||
* \ingroup mars | * \ingroup mars | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mars_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_mars_earth_dist (double JD); | |||
/*! \fn double ln_get_mars_solar_dist (double JD); | /*! \fn double ln_get_mars_solar_dist (double JD); | |||
* \brief Calculate the distance between Mars and the Sun. | * \brief Calculate the distance between Mars and the Sun. | |||
* \ingroup mars | * \ingroup mars | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mars_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_mars_solar_dist (double JD); | |||
/*! \fn double ln_get_mars_magnitude (double JD); | /*! \fn double ln_get_mars_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Mars | * \brief Calculate the visible magnitude of Mars | |||
* \ingroup mars | * \ingroup mars | |||
* \return Visible magnitude of Mars | * \return Visible magnitude of Mars | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mars_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_mars_magnitude (double JD); | |||
/*! \fn double ln_get_mars_disk (double JD); | /*! \fn double ln_get_mars_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Mars disk | * \brief Calculate the illuminated fraction of Mars disk | |||
* \ingroup mars | * \ingroup mars | |||
* \return Illuminated fraction of Mars disk | * \return Illuminated fraction of Mars disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_mars_disk (double JD); | double LIBNOVA_EXPORT ln_get_mars_disk (double JD); | |||
/*! \fn double ln_get_mars_phase (double JD); | /*! \fn double ln_get_mars_phase (double JD); | |||
* \brief Calculate the phase angle of Mars. | * \brief Calculate the phase angle of Mars. | |||
* \ingroup mars | * \ingroup mars | |||
* \return Phase angle of Mars (degrees) | * \return Phase angle of Mars (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_mars_phase (double JD); | double LIBNOVA_EXPORT ln_get_mars_phase (double JD); | |||
/*! \fn void ln_get_mars_rect_helio (double JD, struct ln_rect_posn * posit ion) | /*! \fn void ln_get_mars_rect_helio (double JD, struct ln_rect_posn * posit ion) | |||
* \ingroup mars | * \ingroup mars | |||
* \brief Calculate Mars rectangular heliocentric coordinates. | * \brief Calculate Mars rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_mars_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_mars_rect_helio (double JD, struct ln_rect_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 11 change blocks. | ||||
11 lines changed or deleted | 11 lines changed or added | |||
mercury.h | mercury.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup mercury Mercury | /*! \defgroup mercury Mercury | |||
* | * | |||
* Functions relating to the planet Mercury. | * Functions relating to the planet Mercury. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_mercury_sdiam (double JD) | /*! \fn double ln_get_mercury_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Mercury in arc seconds. | * \brief Calculate the semidiameter of Mercury in arc seconds. | |||
* \ingroup mercury | * \ingroup mercury | |||
*/ | */ | |||
double ln_get_mercury_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_mercury_sdiam (double JD); | |||
/*! \fn double ln_get_mercury_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | /*! \fn double ln_get_mercury_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Mercury. | * \brief Calculate the time of rise, set and transit for Mercury. | |||
* \ingroup mercury | * \ingroup mercury | |||
*/ | */ | |||
int ln_get_mercury_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_mercury_rst (double JD, struct ln_lnlat_posn * ob server, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_mercury_helio_coords (double JD, struct ln_helio_posn * position); | /*! \fn void ln_get_mercury_helio_coords (double JD, struct ln_helio_posn * position); | |||
* \brief Calculate Mercury's heliocentric coordinates | * \brief Calculate Mercury's heliocentric coordinates | |||
* \ingroup mercury | * \ingroup mercury | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_mercury_helio_coords (double JD, struct ln_helio_posn * positio n); | void LIBNOVA_EXPORT ln_get_mercury_helio_coords (double JD, struct ln_helio _posn * position); | |||
/*! \fn void ln_get_mercury_equ_coords (double JD, struct ln_equ_posn * pos ition); | /*! \fn void ln_get_mercury_equ_coords (double JD, struct ln_equ_posn * pos ition); | |||
* \brief Calculate Mercury's equatorial coordinates | * \brief Calculate Mercury's equatorial coordinates | |||
* \ingroup mercury | * \ingroup mercury | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_mercury_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_mercury_equ_coords (double JD, struct ln_equ_pos n * position); | |||
/*! \fn double ln_get_mercury_earth_dist (double JD); | /*! \fn double ln_get_mercury_earth_dist (double JD); | |||
* \brief Calculate the distance between Mercury and the Earth. | * \brief Calculate the distance between Mercury and the Earth. | |||
* \ingroup mercury | * \ingroup mercury | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mercury_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_mercury_earth_dist (double JD); | |||
/*! \fn double ln_get_mercury_solar_dist (double JD); | /*! \fn double ln_get_mercury_solar_dist (double JD); | |||
* \brief Calculate the distance between Mercury and the Sun in AU | * \brief Calculate the distance between Mercury and the Sun in AU | |||
* \ingroup mercury | * \ingroup mercury | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mercury_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_mercury_solar_dist (double JD); | |||
/*! \fn double ln_get_mercury_magnitude (double JD); | /*! \fn double ln_get_mercury_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Mercury | * \brief Calculate the visible magnitude of Mercury | |||
* \ingroup mercury | * \ingroup mercury | |||
* \return Visible magnitude of Mercury | * \return Visible magnitude of Mercury | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_mercury_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_mercury_magnitude (double JD); | |||
/*! \fn double ln_get_mercury_disk (double JD); | /*! \fn double ln_get_mercury_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Mercury's disk | * \brief Calculate the illuminated fraction of Mercury's disk | |||
* \ingroup mercury | * \ingroup mercury | |||
* \return Illuminated fraction of mercurys disk | * \return Illuminated fraction of mercurys disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_mercury_disk (double JD); | double LIBNOVA_EXPORT ln_get_mercury_disk (double JD); | |||
/*! \fn double ln_get_mercury_phase (double JD); | /*! \fn double ln_get_mercury_phase (double JD); | |||
* \brief Calculate the phase angle of Mercury (Sun - Mercury - Earth) | * \brief Calculate the phase angle of Mercury (Sun - Mercury - Earth) | |||
* \ingroup mercury | * \ingroup mercury | |||
* \return Phase angle of Mercury (degrees) | * \return Phase angle of Mercury (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_mercury_phase (double JD); | double LIBNOVA_EXPORT ln_get_mercury_phase (double JD); | |||
/*! \fn void ln_get_mercury_rect_helio (double JD, struct ln_rect_posn * po sition) | /*! \fn void ln_get_mercury_rect_helio (double JD, struct ln_rect_posn * po sition) | |||
* \ingroup mercury | * \ingroup mercury | |||
* \brief Calculate Mercurys rectangular heliocentric coordinates. | * \brief Calculate Mercurys rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_mercury_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_mercury_rect_helio (double JD, struct ln_rect_po sn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 11 change blocks. | ||||
11 lines changed or deleted | 11 lines changed or added | |||
neptune.h | neptune.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup neptune Neptune | /*! \defgroup neptune Neptune | |||
* | * | |||
* Functions relating to the planet Neptune. | * Functions relating to the planet Neptune. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_neptune_sdiam (double JD) | /*! \fn double ln_get_neptune_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Neptune in arc seconds. | * \brief Calculate the semidiameter of Neptune in arc seconds. | |||
* \ingroup neptune | * \ingroup neptune | |||
*/ | */ | |||
double ln_get_neptune_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_neptune_sdiam (double JD); | |||
/*! \fn double ln_get_neptune_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | /*! \fn double ln_get_neptune_rst (double JD, struct ln_lnlat_posn * observ er, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Neptune. | * \brief Calculate the time of rise, set and transit for Neptune. | |||
* \ingroup neptune | * \ingroup neptune | |||
*/ | */ | |||
int ln_get_neptune_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_neptune_rst (double JD, struct ln_lnlat_posn * ob server, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_neptune_helio_coords (double JD, struct ln_helio_posn * position); | /*! \fn void ln_get_neptune_helio_coords (double JD, struct ln_helio_posn * position); | |||
* \brief Calculate Neptune's heliocentric coordinates. | * \brief Calculate Neptune's heliocentric coordinates. | |||
* \ingroup neptune | * \ingroup neptune | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_neptune_helio_coords (double JD, struct ln_helio_posn * positio n); | void LIBNOVA_EXPORT ln_get_neptune_helio_coords (double JD, struct ln_helio _posn * position); | |||
/*! \fn void ln_get_neptune_equ_coords (double JD, struct ln_equ_posn * pos ition); | /*! \fn void ln_get_neptune_equ_coords (double JD, struct ln_equ_posn * pos ition); | |||
* \brief Calculate Neptune's equatorial coordinates. | * \brief Calculate Neptune's equatorial coordinates. | |||
* \ingroup neptune | * \ingroup neptune | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_neptune_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_neptune_equ_coords (double JD, struct ln_equ_pos n * position); | |||
/*! \fn double ln_get_neptune_earth_dist (double JD); | /*! \fn double ln_get_neptune_earth_dist (double JD); | |||
* \brief Calculate the distance between Neptune and the Earth. | * \brief Calculate the distance between Neptune and the Earth. | |||
* \ingroup neptune | * \ingroup neptune | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_neptune_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_neptune_earth_dist (double JD); | |||
/*! \fn double ln_get_neptune_solar_dist (double JD); | /*! \fn double ln_get_neptune_solar_dist (double JD); | |||
* \brief Calculate the distance between Neptune and the Sun. | * \brief Calculate the distance between Neptune and the Sun. | |||
* \ingroup neptune | * \ingroup neptune | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_neptune_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_neptune_solar_dist (double JD); | |||
/*! \fn double ln_get_neptune_magnitude (double JD); | /*! \fn double ln_get_neptune_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Neptune. | * \brief Calculate the visible magnitude of Neptune. | |||
* \ingroup neptune | * \ingroup neptune | |||
* \return Visisble magnitude of Neptune. | * \return Visible magnitude of Neptune. | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_neptune_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_neptune_magnitude (double JD); | |||
/*! \fn double ln_get_neptune_disk (double JD); | /*! \fn double ln_get_neptune_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Neptune's disk. | * \brief Calculate the illuminated fraction of Neptune's disk. | |||
* \ingroup neptune | * \ingroup neptune | |||
* \return Illuminated fraction of Neptune's disk. | * \return Illuminated fraction of Neptune's disk. | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_neptune_disk (double JD); | double LIBNOVA_EXPORT ln_get_neptune_disk (double JD); | |||
/*! \fn double ln_get_neptune_phase (double JD); | /*! \fn double ln_get_neptune_phase (double JD); | |||
* \brief Calculate the phase angle of Neptune. | * \brief Calculate the phase angle of Neptune. | |||
* \ingroup neptune | * \ingroup neptune | |||
* \return Phase angle of Neptune (degrees) | * \return Phase angle of Neptune (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_neptune_phase (double JD); | double LIBNOVA_EXPORT ln_get_neptune_phase (double JD); | |||
/*! \fn void ln_get_neptune_rect_helio (double JD, struct ln_rect_posn * po sition) | /*! \fn void ln_get_neptune_rect_helio (double JD, struct ln_rect_posn * po sition) | |||
* \ingroup neptune | * \ingroup neptune | |||
* \brief Calculate Neptunes rectangular heliocentric coordinates. | * \brief Calculate Neptunes rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_neptune_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_neptune_rect_helio (double JD, struct ln_rect_po sn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 12 change blocks. | ||||
12 lines changed or deleted | 12 lines changed or added | |||
nutation.h | nutation.h | |||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
* Nutation is a period oscillation of the Earths rotational axis around it' s | * Nutation is a period oscillation of the Earths rotational axis around it' s | |||
* mean position. | * mean position. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn void ln_get_nutation (double JD, struct ln_nutation * nutation); | /*! \fn void ln_get_nutation (double JD, struct ln_nutation * nutation); | |||
* \ingroup nutation | * \ingroup nutation | |||
* \brief Calculate nutation. | * \brief Calculate nutation. | |||
*/ | */ | |||
void ln_get_nutation (double JD, struct ln_nutation * nutation); | void LIBNOVA_EXPORT ln_get_nutation (double JD, struct ln_nutation * nutati on); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
parabolic_motion.h | parabolic_motion.h | |||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
* | * | |||
* Functions relating to the Parabolic motion of bodies. | * Functions relating to the Parabolic motion of bodies. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_solve_barker (double q, double t); | /*! \fn double ln_solve_barker (double q, double t); | |||
* \brief Solve Barkers equation. | * \brief Solve Barkers equation. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
double ln_solve_barker (double q, double t); | double LIBNOVA_EXPORT ln_solve_barker (double q, double t); | |||
/*! \fn double ln_get_par_true_anomaly (double q, double t); | /*! \fn double ln_get_par_true_anomaly (double q, double t); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the true anomaly. | * \brief Calculate the true anomaly. | |||
*/ | */ | |||
double ln_get_par_true_anomaly (double q, double t); | double LIBNOVA_EXPORT ln_get_par_true_anomaly (double q, double t); | |||
/*! \fn double ln_get_par_radius_vector (double q, double t); | /*! \fn double ln_get_par_radius_vector (double q, double t); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the radius vector. | * \brief Calculate the radius vector. | |||
*/ | */ | |||
double ln_get_par_radius_vector (double q, double t); | double LIBNOVA_EXPORT ln_get_par_radius_vector (double q, double t); | |||
/*! \fn void ln_get_par_geo_rect_posn (struct ln_par_orbit* orbit, double J D, struct ln_rect_posn* posn); | /*! \fn void ln_get_par_geo_rect_posn (struct ln_par_orbit* orbit, double J D, struct ln_rect_posn* posn); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate an objects rectangular geocentric position. | * \brief Calculate an objects rectangular geocentric position. | |||
*/ | */ | |||
void ln_get_par_geo_rect_posn (struct ln_par_orbit* orbit, double JD, struc t ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_par_geo_rect_posn (struct ln_par_orbit* orbit, d ouble JD, struct ln_rect_posn* posn); | |||
/*! \fn void ln_get_par_helio_rect_posn (struct ln_par_orbit* orbit, double JD, struct ln_rect_posn* posn); | /*! \fn void ln_get_par_helio_rect_posn (struct ln_par_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate an objects rectangular heliocentric position. | * \brief Calculate an objects rectangular heliocentric position. | |||
*/ | */ | |||
void ln_get_par_helio_rect_posn (struct ln_par_orbit* orbit, double JD, str uct ln_rect_posn* posn); | void LIBNOVA_EXPORT ln_get_par_helio_rect_posn (struct ln_par_orbit* orbit, double JD, struct ln_rect_posn* posn); | |||
/*! | /*! | |||
* \fn void ln_get_par_body_equ_coords (double JD, struct ln_par_orbit * orb it, struct ln_equ_posn * posn) | * \fn void ln_get_par_body_equ_coords (double JD, struct ln_par_orbit * orb it, struct ln_equ_posn * posn) | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate a bodies equatorial coordinates. | * \brief Calculate a bodies equatorial coordinates. | |||
*/ | */ | |||
void ln_get_par_body_equ_coords (double JD, struct ln_par_orbit * orbit, st ruct ln_equ_posn * posn); | void LIBNOVA_EXPORT ln_get_par_body_equ_coords (double JD, struct ln_par_or bit * orbit, struct ln_equ_posn * posn); | |||
/*! | /*! | |||
* \fn double ln_get_par_body_earth_dist (double JD, struct ln_par_orbit * o rbit) | * \fn double ln_get_par_body_earth_dist (double JD, struct ln_par_orbit * o rbit) | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the distance between a body and the Earth. | * \brief Calculate the distance between a body and the Earth. | |||
*/ | */ | |||
double ln_get_par_body_earth_dist (double JD, struct ln_par_orbit * orbit); | double LIBNOVA_EXPORT ln_get_par_body_earth_dist (double JD, struct ln_par_ orbit * orbit); | |||
/*! | /*! | |||
* \fn double ln_get_par_body_solar_dist (double JD, struct ln_par_orbit * o rbit) | * \fn double ln_get_par_body_solar_dist (double JD, struct ln_par_orbit * o rbit) | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the distance between a body and the Sun. | * \brief Calculate the distance between a body and the Sun. | |||
*/ | */ | |||
double ln_get_par_body_solar_dist (double JD, struct ln_par_orbit * orbit); | double LIBNOVA_EXPORT ln_get_par_body_solar_dist (double JD, struct ln_par_ orbit * orbit); | |||
/*! \fn double ln_get_par_body_phase_angle (double JD, struct ln_par_orbit * orbit); | /*! \fn double ln_get_par_body_phase_angle (double JD, struct ln_par_orbit * orbit); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the pase angle of the body. | * \brief Calculate the phase angle of the body. | |||
*/ | */ | |||
double ln_get_par_body_phase_angle (double JD, struct ln_par_orbit * orbit) ; | double LIBNOVA_EXPORT ln_get_par_body_phase_angle (double JD, struct ln_par _orbit * orbit); | |||
/*! \fn double ln_get_par_body_elong (double JD, struct ln_par_orbit * orbi t); | /*! \fn double ln_get_par_body_elong (double JD, struct ln_par_orbit * orbi t); | |||
* \ingroup parabolic | * \ingroup parabolic | |||
* \brief Calculate the bodies elongation to the Sun. | * \brief Calculate the bodies elongation to the Sun. | |||
*/ | */ | |||
double ln_get_par_body_elong (double JD, struct ln_par_orbit * orbit); | double LIBNOVA_EXPORT ln_get_par_body_elong (double JD, struct ln_par_orbit * orbit); | |||
/*! \fn double ln_get_par_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_par_body_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with a para bolic orbit. | * \brief Calculate the time of rise, set and transit for a body with a para bolic orbit. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
int ln_get_par_body_rst (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_par_body_rst (double JD, struct ln_lnlat_posn * o bserver, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_par_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | /*! \fn double ln_get_par_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rst_tim e * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with a para bolic orbit. | * \brief Calculate the time of rise, set and transit for a body with a para bolic orbit. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
int 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); | 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); | |||
/*! \fn double ln_get_par_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | /*! \fn double ln_get_par_body_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
int ln_get_par_body_next_rst (double JD, struct ln_lnlat_posn * observer, s truct ln_par_orbit * orbit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_par_body_next_rst (double JD, struct ln_lnlat_pos n * observer, struct ln_par_orbit * orbit, struct ln_rst_time * rst); | |||
/*! \fn double ln_get_par_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rs t_time * rst); | /*! \fn double ln_get_par_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, struct ln_par_orbit * orbit, double horizon, struct ln_rs t_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
int ln_get_par_body_next_rst_horizon (double JD, struct ln_lnlat_posn * obs erver, struct ln_par_orbit * orbit, double horizon, struct ln_rst_time * rs t); | int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon (double JD, struct ln_l nlat_posn * observer, struct ln_par_orbit * orbit, double horizon, struct l n_rst_time * rst); | |||
/*! \fn double ln_get_par_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | /*! \fn double ln_get_par_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, int d ay_limit, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | * \brief Calculate the time of rise, set and transit for a body with an par abolic orbit. | |||
* \ingroup parabolic | * \ingroup parabolic | |||
*/ | */ | |||
int ln_get_par_body_next_rst_horizon_future (double JD, struct ln_lnlat_pos n * observer, struct ln_par_orbit * orbit, double horizon, int day_limit, s truct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_par_body_next_rst_horizon_future (double JD, stru ct ln_lnlat_posn * observer, struct ln_par_orbit * orbit, double horizon, i nt day_limit, struct ln_rst_time * rst); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 16 change blocks. | ||||
16 lines changed or deleted | 16 lines changed or added | |||
parallax.h | parallax.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \fn void ln_get_parallax (struct ln_equ_posn * object, double au_distan ce, struct ln_lnlat_posn * observer, double height, double JD, struct ln_eq u_posn * parallax); | /*! \fn void ln_get_parallax (struct ln_equ_posn * object, double au_distan ce, struct ln_lnlat_posn * observer, double height, double JD, struct ln_eq u_posn * parallax); | |||
* \ingroup parallax | * \ingroup parallax | |||
* \brief Calculate parallax in RA and DEC for given geographic location | * \brief Calculate parallax in RA and DEC for given geographic location | |||
*/ | */ | |||
void ln_get_parallax (struct ln_equ_posn * object, double au_distance, stru ct ln_lnlat_posn * observer, double height, double JD, struct ln_equ_posn * parallax); | void LIBNOVA_EXPORT ln_get_parallax (struct ln_equ_posn * object, double au _distance, struct ln_lnlat_posn * observer, double height, double JD, struc t ln_equ_posn * parallax); | |||
/*! \fn void ln_get_parallax_ha (struct ln_equ_posn * object, double au_dis tance, struct ln_lnlat_posn * observer, double height, double H, struct ln_ equ_posn * parallax); | /*! \fn void ln_get_parallax_ha (struct ln_equ_posn * object, double au_dis tance, struct ln_lnlat_posn * observer, double height, double H, struct ln_ equ_posn * parallax); | |||
* \ingroup parallax | * \ingroup parallax | |||
* \brief Calculate parallax in RA and DEC for given geographic location | * \brief Calculate parallax in RA and DEC for given geographic location | |||
*/ | */ | |||
void ln_get_parallax_ha (struct ln_equ_posn * object, double au_distance, s truct ln_lnlat_posn * observer, double height, double H, struct ln_equ_posn * parallax); | void LIBNOVA_EXPORT ln_get_parallax_ha (struct ln_equ_posn * object, double au_distance, struct ln_lnlat_posn * observer, double height, double H, str uct ln_equ_posn * parallax); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
pluto.h | pluto.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup pluto Pluto | /*! \defgroup pluto Pluto | |||
* | * | |||
* Functions relating to the planet Pluto. | * Functions relating to the planet Pluto. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_pluto_sdiam (double JD) | /*! \fn double ln_get_pluto_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Pluto in arc seconds. | * \brief Calculate the semidiameter of Pluto in arc seconds. | |||
* \ingroup pluto | * \ingroup pluto | |||
*/ | */ | |||
double ln_get_pluto_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_pluto_sdiam (double JD); | |||
/*! \fn double ln_get_pluto_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | /*! \fn double ln_get_pluto_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Pluto. | * \brief Calculate the time of rise, set and transit for Pluto. | |||
* \ingroup pluto | * \ingroup pluto | |||
*/ | */ | |||
int ln_get_pluto_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | int LIBNOVA_EXPORT ln_get_pluto_rst (double JD, struct ln_lnlat_posn * obse rver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_pluto_helio_coords (double JD, struct ln_helio_posn * p osition); | /*! \fn void ln_get_pluto_helio_coords (double JD, struct ln_helio_posn * p osition); | |||
* \brief Calculate Pluto's heliocentric coordinates. | * \brief Calculate Pluto's heliocentric coordinates. | |||
* \ingroup pluto | * \ingroup pluto | |||
*/ | */ | |||
/* Chapter 37 Pg 263 */ | /* Chapter 37 Pg 263 */ | |||
void ln_get_pluto_helio_coords (double JD, struct ln_helio_posn * position) ; | void LIBNOVA_EXPORT ln_get_pluto_helio_coords (double JD, struct ln_helio_p osn * position); | |||
/*! \fn void ln_get_pluto_equ_coords (double JD, struct ln_equ_posn * posit ion); | /*! \fn void ln_get_pluto_equ_coords (double JD, struct ln_equ_posn * posit ion); | |||
* \brief Calculate Pluto's equatorial coordinates. | * \brief Calculate Pluto's equatorial coordinates. | |||
* \ingroup pluto | * \ingroup pluto | |||
*/ | */ | |||
/* Chapter 37 */ | /* Chapter 37 */ | |||
void ln_get_pluto_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_pluto_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn double ln_get_pluto_earth_dist (double JD); | /*! \fn double ln_get_pluto_earth_dist (double JD); | |||
* \brief Calculate the distance between Pluto and the Earth. | * \brief Calculate the distance between Pluto and the Earth. | |||
* \ingroup pluto | * \ingroup pluto | |||
* \return distance in AU | * \return distance in AU | |||
*/ | */ | |||
/* Chapter 37 */ | /* Chapter 37 */ | |||
double ln_get_pluto_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_pluto_earth_dist (double JD); | |||
/*! \fn double ln_get_pluto_solar_dist (double JD); | /*! \fn double ln_get_pluto_solar_dist (double JD); | |||
* \brief Calculate the distance between Pluto and the Sun. | * \brief Calculate the distance between Pluto and the Sun. | |||
* \ingroup pluto | * \ingroup pluto | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter 37 */ | /* Chapter 37 */ | |||
double ln_get_pluto_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_pluto_solar_dist (double JD); | |||
/*! \fn double ln_get_pluto_magnitude (double JD); | /*! \fn double ln_get_pluto_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Pluto | * \brief Calculate the visible magnitude of Pluto | |||
* \ingroup pluto | * \ingroup pluto | |||
* \return Visible magnitude of Pluto. | * \return Visible magnitude of Pluto. | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_pluto_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_pluto_magnitude (double JD); | |||
/*! \fn double ln_get_pluto_disk (double JD); | /*! \fn double ln_get_pluto_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Pluto's disk | * \brief Calculate the illuminated fraction of Pluto's disk | |||
* \ingroup pluto | * \ingroup pluto | |||
* \return Illuminated fraction of Pluto's disk | * \return Illuminated fraction of Pluto's disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_pluto_disk (double JD); | double LIBNOVA_EXPORT ln_get_pluto_disk (double JD); | |||
/*! \fn double ln_get_pluto_phase (double JD); | /*! \fn double ln_get_pluto_phase (double JD); | |||
* \brief Calculate the phase angle of Pluto. | * \brief Calculate the phase angle of Pluto. | |||
* \ingroup pluto | * \ingroup pluto | |||
* \return Phase angle of Pluto (degrees). | * \return Phase angle of Pluto (degrees). | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_pluto_phase (double JD); | double LIBNOVA_EXPORT ln_get_pluto_phase (double JD); | |||
/*! \fn void ln_get_pluto_rect_helio (double JD, struct ln_rect_posn * posi tion) | /*! \fn void ln_get_pluto_rect_helio (double JD, struct ln_rect_posn * posi tion) | |||
* \ingroup pluto | * \ingroup pluto | |||
* \brief Calculate Plutos rectangular heliocentric coordinates. | * \brief Calculate Plutos rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_pluto_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_pluto_rect_helio (double JD, struct ln_rect_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 11 change blocks. | ||||
11 lines changed or deleted | 11 lines changed or added | |||
precession.h | precession.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
#ifndef _LN_PRECESSION_H | #ifndef _LN_PRECESSION_H | |||
#define _LN_PRECESSION_H | #define _LN_PRECESSION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup precession Precession. | /*! \defgroup precession Precession | |||
* | * | |||
* Precession is the changing direction of the Earth's rotational axis over time and | * Precession is the changing direction of the Earth's rotational axis over time and | |||
* is due to the gravitational influence of the Sun and the Moon. | * is due to the gravitational influence of the Sun and the Moon. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn void ln_get_equ_prec (struct ln_equ_posn * mean_position, double JD , struct ln_equ_posn * position); | /*! \fn void ln_get_equ_prec (struct ln_equ_posn * mean_position, double JD , struct ln_equ_posn * position); | |||
* \brief Calculate the effects of precession on equatorial coordinates, con vert current to J2000. | * \brief Calculate the effects of precession on equatorial coordinates, con vert current to J2000. | |||
* \ingroup precession | * \ingroup precession | |||
*/ | */ | |||
/* Equ 20.2, 20.3, 20.4 pg 126 */ | /* Equ 20.2, 20.3, 20.4 pg 126 */ | |||
void ln_get_equ_prec (struct ln_equ_posn * mean_position, double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_equ_prec (struct ln_equ_posn * mean_position, do uble JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_equ_prec2 (struct ln_equ_posn * mean_position, double f romJD, double toJD, struct ln_equ_posn * position); | /*! \fn void ln_get_equ_prec2 (struct ln_equ_posn * mean_position, double f romJD, double toJD, struct ln_equ_posn * position); | |||
* \brief Calculate the effects of precession on equatorial coordinates, bet ween arbitary Jxxxx epochs. | * \brief Calculate the effects of precession on equatorial coordinates, bet ween arbitary Jxxxx epochs. | |||
* \ingroup precession | * \ingroup precession | |||
*/ | */ | |||
/* Equ 20.2, 20.3, 20.4 pg 126 */ | /* Equ 20.2, 20.3, 20.4 pg 126 */ | |||
void ln_get_equ_prec2 (struct ln_equ_posn * mean_position, double fromJD, d ouble toJD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_equ_prec2 (struct ln_equ_posn * mean_position, d ouble fromJD, double toJD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_ecl_prec (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | /*! \fn void ln_get_ecl_prec (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | |||
* \brief Calculate the effects of precession on ecliptical coordinates. | * \brief Calculate the effects of precession on ecliptical coordinates. | |||
* \ingroup precession | * \ingroup precession | |||
*/ | */ | |||
/* Equ 20.5, 20.6 pg 128 */ | /* Equ 20.5, 20.6 pg 128 */ | |||
void ln_get_ecl_prec (struct ln_lnlat_posn * mean_position, double JD, stru ct ln_lnlat_posn * position); | void LIBNOVA_EXPORT ln_get_ecl_prec (struct ln_lnlat_posn * mean_position, double JD, struct ln_lnlat_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added | |||
proper_motion.h | proper_motion.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
#ifndef _LN_PROPER_MOTION_H | #ifndef _LN_PROPER_MOTION_H | |||
#define _LN_PROPER_MOTION_H | #define _LN_PROPER_MOTION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup motion Proper Motion. | /*! \defgroup motion Proper Motion | |||
* Proper motion is the motion in space of a star between 2 epochs. It has c omponents | * Proper motion is the motion in space of a star between 2 epochs. It has c omponents | |||
* in right ascension and in declination. | * in right ascension and in declination. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn void ln_get_equ_pm (struct ln_equ_posn * mean_position, struct ln_e qu_posn * proper_motion, double JD, struct ln_equ_posn * position); | /*! \fn void ln_get_equ_pm (struct ln_equ_posn * mean_position, struct ln_e qu_posn * proper_motion, double JD, struct ln_equ_posn * position); | |||
* \brief Calculate a stars equatorial position wrt proper motion (J2000). | * \brief Calculate a stars equatorial position wrt proper motion (J2000). | |||
* \ingroup motion | * \ingroup motion | |||
*/ | */ | |||
/* Equ 20.2, 20.3, 20.4 pg 126 */ | /* Equ 20.2, 20.3, 20.4 pg 126 */ | |||
void ln_get_equ_pm (struct ln_equ_posn * mean_position, struct ln_equ_posn * proper_motion, double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_equ_pm (struct ln_equ_posn * mean_position, stru ct ln_equ_posn * proper_motion, double JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_equ_pm_epoch (struct ln_equ_posn * mean_position, struc t ln_equ_posn * proper_motion, double JD, double epoch_JD, struct ln_equ_po sn * position) | /*! \fn void ln_get_equ_pm_epoch (struct ln_equ_posn * mean_position, struc t ln_equ_posn * proper_motion, double JD, double epoch_JD, struct ln_equ_po sn * position) | |||
* \brief Calculate a stars equatorial position wrt proper motion and epoch. | * \brief Calculate a stars equatorial position wrt proper motion and epoch. | |||
*/ | */ | |||
/* Equ 20.2, 20.3, 20.4 pg 126 | /* Equ 20.2, 20.3, 20.4 pg 126 | |||
*/ | */ | |||
void ln_get_equ_pm_epoch (struct ln_equ_posn * mean_position, struct ln_equ _posn * proper_motion, double JD, double epoch_JD, struct ln_equ_posn * pos ition); | void LIBNOVA_EXPORT ln_get_equ_pm_epoch (struct ln_equ_posn * mean_position , struct ln_equ_posn * proper_motion, double JD, double epoch_JD, struct ln _equ_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
refraction.h | refraction.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* Functions relating to Atmospheric Refraction | * Functions relating to Atmospheric Refraction | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_refraction_adj (double altitude, double atm_pres, dou ble temp) | /*! \fn double ln_get_refraction_adj (double altitude, double atm_pres, dou ble temp) | |||
* \brief Calculate the adjustment in altitude of a body due to atmospheric | * \brief Calculate the adjustment in altitude of a body due to atmospheric | |||
* refraction. | * refraction. | |||
* \ingroup refraction | * \ingroup refraction | |||
*/ | */ | |||
double ln_get_refraction_adj (double altitude, double atm_pres, double temp ); | double LIBNOVA_EXPORT ln_get_refraction_adj (double altitude, double atm_pr es, double temp); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
rise_set.h | rise_set.h | |||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
* | * | |||
* Functions relating to an objects rise, set and transit | * Functions relating to an objects rise, set and transit | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn int ln_get_object_rst (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object,struct ln_rst_time * rst); | /*! \fn int ln_get_object_rst (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object,struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for an object not orbi ting the Sun. | * \brief Calculate the time of rise, set and transit for an object not orbi ting the Sun. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_object_rst (double JD, struct ln_lnlat_posn * observer, struct l n_equ_posn * object, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_object_rst (double JD, struct ln_lnlat_posn * obs erver, struct ln_equ_posn * object, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_object_rst_horizon (double JD, struct ln_lnlat_posn * ob server, struct ln_equ_posn * object, long double horizon, struct ln_rst_tim e * rst); | /*! \fn int ln_get_object_rst_horizon (double JD, struct ln_lnlat_posn * ob server, struct ln_equ_posn * object, long double horizon, struct ln_rst_tim e * rst); | |||
* \brief Calculate the time of rise, set and transit above local horizon fo r | * \brief Calculate the time of rise, set and transit above local horizon fo r | |||
* an objet not orbiting the Sun. | * an object not orbiting the Sun. | |||
* | * | |||
*/ | */ | |||
int ln_get_object_rst_horizon (double JD, struct ln_lnlat_posn * observer, | int LIBNOVA_EXPORT ln_get_object_rst_horizon (double JD, struct ln_lnlat_po sn * observer, | |||
struct ln_equ_posn * object, long double horizon, struct ln_rst_time * rst); | struct ln_equ_posn * object, long double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_object_next_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_equ_posn * object, struct ln_rst_time * rst); | /*! \fn int ln_get_object_next_rst (double JD, struct ln_lnlat_posn * obser ver, struct ln_equ_posn * object, struct ln_rst_time * rst); | |||
* \brief Calculate the time of next rise, set and transit for an object not orbiting the Sun. | * \brief Calculate the time of next rise, set and transit for an object not orbiting the Sun. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | |||
* This function is not too precise, it's good to get general idea when obje ct will rise. | * This function is not too precise, it's good to get general idea when obje ct will rise. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_object_next_rst (double JD, struct ln_lnlat_posn * observer, str uct ln_equ_posn * object, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_object_next_rst (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_object_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, double horizon, struct ln_rst_tim e * rst); | /*! \fn int ln_get_object_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, struct ln_equ_posn * object, double horizon, struct ln_rst_tim e * rst); | |||
* \brief Calculate the time of next rise, set and transit for an object not orbiting the Sun. | * \brief Calculate the time of next rise, set and transit for an object not orbiting the Sun. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_object_next_rst_horizon (double JD, struct ln_lnlat_posn * obser ver, struct ln_equ_posn * object, | int LIBNOVA_EXPORT ln_get_object_next_rst_horizon (double JD, struct ln_lnl at_posn * observer, struct ln_equ_posn * object, | |||
double horizon, struct ln_rst_time * rst); | double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn * obse rver, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double ho rizon, struct ln_rst_time *rst); | /*! \fn int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn * obse rver, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double ho rizon, struct ln_rst_time *rst); | |||
* \brief Calculate the time of rise, set and transit for an object a body, ussually Sun, a planet or Moon. | * \brief Calculate the time of rise, set and transit for an object a body, usually Sun, a planet or Moon. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, vo id (*get_equ_body_coords) (double, struct ln_equ_posn *), double horizon, s truct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), do uble horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), doub le horizon, struct ln_rst_time *rst); | /*! \fn int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), doub le horizon, struct ln_rst_time *rst); | |||
* \brief Calculate the time of next rise, set and transit for an object a body, ussually Sun, a planet or Moon. | * \brief Calculate the time of next rise, set and transit for an object a body, usually Sun, a planet or Moon. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observe r, void (*get_equ_body_coords) (double, struct ln_equ_posn *), double horiz on, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn * ), double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_body_next_rst_horizon_future (double JD, struct ln_lnlat _posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn * ), double horizon, int day_limit, struct ln_rst_time *rst); | /*! \fn int ln_get_body_next_rst_horizon_future (double JD, struct ln_lnlat _posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn * ), double horizon, int day_limit, struct ln_rst_time *rst); | |||
* \brief Calculate the time of next rise, set and transit for an object a body, ussually Sun, a planet or Moon. | * \brief Calculate the time of next rise, set and transit for an object a body, usually Sun, a planet or Moon. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+day_limit> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+day_limit> range. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_body_next_rst_horizon_future (double JD, struct ln_lnlat_posn * observer, void (*get_equ_body_coords) (double, struct ln_equ_posn *), doubl e horizon, int day_limit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, void (*get_equ_body_coords) (double, struct ln_equ _posn *), double horizon, int day_limit, struct ln_rst_time * rst); | |||
typedef void (*get_motion_body_coords_t) (double, void * orbit, struct ln_e qu_posn *); | typedef void (*get_motion_body_coords_t) (double, void * orbit, struct ln_e qu_posn *); | |||
/*! \fn int ln_get_motion_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, double horizo n, struct ln_rst_time *rst); | /*! \fn int ln_get_motion_body_rst_horizon (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, double horizo n, struct ln_rst_time *rst); | |||
* \brief Calculate the time of rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | * \brief Calculate the time of rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_motion_body_rst_horizon (double JD, struct ln_lnlat_posn * obser ver, get_motion_body_coords_t get_motion_body_coords, void * orbit, double horizon, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_motion_body_rst_horizon (double JD, struct ln_lnl at_posn * observer, get_motion_body_coords_t get_motion_body_coords, void * orbit, double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_motion_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, get_motion_body_coords_t get_motion_body_coords, double h orizon, struct ln_rst_time *rst); | /*! \fn int ln_get_motion_body_next_rst_horizon (double JD, struct ln_lnlat _posn * observer, get_motion_body_coords_t get_motion_body_coords, double h orizon, struct ln_rst_time *rst); | |||
* \brief Calculate the time of next rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | * \brief Calculate the time of next rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+1> range. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_motion_body_next_rst_horizon (double JD, struct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, void * orbit, do uble horizon, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_motion_body_next_rst_horizon (double JD, struct l n_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, v oid * orbit, double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_motion_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, d ouble horizon, int day_limit, struct ln_rst_time *rst); | /*! \fn int ln_get_motion_body_next_rst_horizon_future (double JD, struct l n_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_coords, d ouble horizon, int day_limit, struct ln_rst_time *rst); | |||
* \brief Calculate the time of next rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | * \brief Calculate the time of next rise, set and transit for an object a body on elliptic, parabolic or hyperbolic orbit. | |||
* E.g. it's sure, that rise, set and transit will be in <JD, JD+day_limit> range. | * E.g. it's sure, that rise, set and transit will be in <JD, JD+day_limit> range. | |||
* \ingroup rst | * \ingroup rst | |||
*/ | */ | |||
int ln_get_motion_body_next_rst_horizon_future (double JD, struct ln_lnlat_ posn * observer, get_motion_body_coords_t get_motion_body_coords, void * or bit, double horizon, int day_limit, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_motion_body_next_rst_horizon_future (double JD, s truct ln_lnlat_posn * observer, get_motion_body_coords_t get_motion_body_co ords, void * orbit, double horizon, int day_limit, struct ln_rst_time * rst ); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 14 change blocks. | ||||
14 lines changed or deleted | 14 lines changed or added | |||
saturn.h | saturn.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup saturn Saturn | /*! \defgroup saturn Saturn | |||
* | * | |||
* Functions relating to the planet Saturn. | * Functions relating to the planet Saturn. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_saturn_equ_sdiam (double JD) | /*! \fn double ln_get_saturn_equ_sdiam (double JD) | |||
* \brief Calcaluate the equatorial semidiameter of Saturn in arc seconds. | * \brief Calculate the equatorial semidiameter of Saturn in arc seconds. | |||
* \ingroup saturn | * \ingroup saturn | |||
*/ | */ | |||
double ln_get_saturn_equ_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_saturn_equ_sdiam (double JD); | |||
/*! \fn double ln_get_saturn_pol_sdiam (double JD) | /*! \fn double ln_get_saturn_pol_sdiam (double JD) | |||
* \brief Calcaluate the polar semidiameter of Saturn in arc seconds. | * \brief Calculate the polar semidiameter of Saturn in arc seconds. | |||
* \ingroup saturn | * \ingroup saturn | |||
*/ | */ | |||
double ln_get_saturn_pol_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_saturn_pol_sdiam (double JD); | |||
/*! \fn double ln_get_saturn_rst (double JD, struct ln_lnlat_posn * observe r, struct ln_rst_time * rst); | /*! \fn double ln_get_saturn_rst (double JD, struct ln_lnlat_posn * observe r, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Saturn. | * \brief Calculate the time of rise, set and transit for Saturn. | |||
* \ingroup saturn | * \ingroup saturn | |||
*/ | */ | |||
int ln_get_saturn_rst (double JD, struct ln_lnlat_posn * observer, struct l n_rst_time * rst); | int LIBNOVA_EXPORT ln_get_saturn_rst (double JD, struct ln_lnlat_posn * obs erver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_saturn_helio_coords (double JD, struct ln_helio_posn * position); | /*! \fn void ln_get_saturn_helio_coords (double JD, struct ln_helio_posn * position); | |||
* \brief Calculate Saturn's heliocentric coordinates. | * \brief Calculate Saturn's heliocentric coordinates. | |||
* \ingroup saturn | * \ingroup saturn | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_saturn_helio_coords (double JD, struct ln_helio_posn * position ); | void LIBNOVA_EXPORT ln_get_saturn_helio_coords (double JD, struct ln_helio_ posn * position); | |||
/*! \fn void ln_get_saturn_equ_coords (double JD, struct ln_equ_posn * posi tion); | /*! \fn void ln_get_saturn_equ_coords (double JD, struct ln_equ_posn * posi tion); | |||
* \brief Calculate Saturn's equatorial coordinates. | * \brief Calculate Saturn's equatorial coordinates. | |||
* \ingroup saturn | * \ingroup saturn | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_saturn_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_saturn_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn double ln_get_saturn_earth_dist (double JD); | /*! \fn double ln_get_saturn_earth_dist (double JD); | |||
* \brief Calculate the distance between Saturn and the Earth. | * \brief Calculate the distance between Saturn and the Earth. | |||
* \ingroup saturn | * \ingroup saturn | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_saturn_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_saturn_earth_dist (double JD); | |||
/*! \fn double ln_get_saturn_solar_dist (double JD); | /*! \fn double ln_get_saturn_solar_dist (double JD); | |||
* \brief Calculate the distance between Saturn and the Sun. | * \brief Calculate the distance between Saturn and the Sun. | |||
* \ingroup saturn | * \ingroup saturn | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_saturn_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_saturn_solar_dist (double JD); | |||
/*! \fn double ln_get_saturn_magnitude (double JD); | /*! \fn double ln_get_saturn_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Saturn | * \brief Calculate the visible magnitude of Saturn | |||
* \ingroup saturn | * \ingroup saturn | |||
* \return Visible magnitude of Saturn | * \return Visible magnitude of Saturn | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_saturn_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_saturn_magnitude (double JD); | |||
/*! \fn double ln_get_saturn_disk (double JD); | /*! \fn double ln_get_saturn_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Saturn's disk | * \brief Calculate the illuminated fraction of Saturn's disk | |||
* \ingroup saturn | * \ingroup saturn | |||
* \return Illuminated fraction of Saturn's disk | * \return Illuminated fraction of Saturn's disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_saturn_disk (double JD); | double LIBNOVA_EXPORT ln_get_saturn_disk (double JD); | |||
/*! \fn double ln_get_saturn_phase (double JD); | /*! \fn double ln_get_saturn_phase (double JD); | |||
* \brief Calculate the phase angle of Saturn. | * \brief Calculate the phase angle of Saturn. | |||
* \ingroup saturn | * \ingroup saturn | |||
* \return Phase angle of Saturn (degrees) | * \return Phase angle of Saturn (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_saturn_phase (double JD); | double LIBNOVA_EXPORT ln_get_saturn_phase (double JD); | |||
/*! \fn void ln_get_saturn_rect_helio (double JD, struct ln_rect_posn * pos ition) | /*! \fn void ln_get_saturn_rect_helio (double JD, struct ln_rect_posn * pos ition) | |||
* \ingroup saturns | * \ingroup saturns | |||
* \brief Calculate Saturns rectangular heliocentric coordinates. | * \brief Calculate Saturns rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_saturn_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_saturn_rect_helio (double JD, struct ln_rect_pos n * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 13 change blocks. | ||||
13 lines changed or deleted | 13 lines changed or added | |||
sidereal_time.h | sidereal_time.h | |||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
/*! \defgroup sidereal Sidereal Time | /*! \defgroup sidereal Sidereal Time | |||
* | * | |||
* TODO | * TODO | |||
*/ | */ | |||
/*! \fn ln_double ln_get_mean_sidereal_time (double JD) | /*! \fn ln_double ln_get_mean_sidereal_time (double JD) | |||
* \brief Calculate mean sidereal time from date. | * \brief Calculate mean sidereal time from date. | |||
* \ingroup sidereal | * \ingroup sidereal | |||
*/ | */ | |||
double ln_get_mean_sidereal_time (double JD); | double LIBNOVA_EXPORT ln_get_mean_sidereal_time (double JD); | |||
/*! \fn ln_get_apparent_sidereal_time (double JD) | /*! \fn ln_get_apparent_sidereal_time (double JD) | |||
* \brief Calculate apparent sidereal time from date. | * \brief Calculate apparent sidereal time from date. | |||
* \ingroup sidereal | * \ingroup sidereal | |||
*/ | */ | |||
double ln_get_apparent_sidereal_time (double JD); | double LIBNOVA_EXPORT ln_get_apparent_sidereal_time (double JD); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
solar.h | solar.h | |||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
#define LN_SOLAR_STANDART_HORIZON -0.8333 | #define LN_SOLAR_STANDART_HORIZON -0.8333 | |||
#define LN_SOLAR_CIVIL_HORIZON -6.0 | #define LN_SOLAR_CIVIL_HORIZON -6.0 | |||
#define LN_SOLAR_NAUTIC_HORIZON -12.0 | #define LN_SOLAR_NAUTIC_HORIZON -12.0 | |||
#define LN_SOLAR_ASTRONOMICAL_HORIZON -18.0 | #define LN_SOLAR_ASTRONOMICAL_HORIZON -18.0 | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup solar Solar. | /*! \defgroup solar Solar | |||
* | * | |||
* Calculate solar ecliptical/equatorial coordinates for a given julian date . | * Calculate solar ecliptical/equatorial coordinates for a given julian date . | |||
* Accuracy 0.01 arc second error - uses VSOP87 solution. | * Accuracy 0.01 arc second error - uses VSOP87 solution. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn int ln_get_solar_rst_horizon (double JD, struct ln_lnlat_posn * obs erver, double horizon, struct ln_rst_time *rst); | /*! \fn int ln_get_solar_rst_horizon (double JD, struct ln_lnlat_posn * obs erver, double horizon, struct ln_rst_time *rst); | |||
* \brief Return solar rise/set time over local horizon (specified in degree s). | * \brief Return solar rise/set time over local horizon (specified in degree s). | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
int ln_get_solar_rst_horizon (double JD, struct ln_lnlat_posn * observer, d ouble horizon, struct ln_rst_time * rst); | int LIBNOVA_EXPORT ln_get_solar_rst_horizon (double JD, struct ln_lnlat_pos n * observer, double horizon, struct ln_rst_time * rst); | |||
/*! \fn int ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, s truct ln_rst_time * rst); | /*! \fn int ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, s truct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for the Sun. | * \brief Calculate the time of rise, set and transit for the Sun. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
int ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | int LIBNOVA_EXPORT ln_get_solar_rst (double JD, struct ln_lnlat_posn * obse rver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_solar_geom_coords (double JD, struct ln_helio_posn * po sition); | /*! \fn void ln_get_solar_geom_coords (double JD, struct ln_helio_posn * po sition); | |||
* \brief Calculate solar geometric coordinates. | * \brief Calculate solar geometric coordinates. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
void ln_get_solar_geom_coords (double JD, struct ln_helio_posn * position); | void LIBNOVA_EXPORT ln_get_solar_geom_coords (double JD, struct ln_helio_po sn * position); | |||
/*! \fn void ln_get_solar_equ_coords (double JD, struct ln_equ_posn * posit ion); | /*! \fn void ln_get_solar_equ_coords (double JD, struct ln_equ_posn * posit ion); | |||
* \brief Calculate apparent equatorial coordinates. | * \brief Calculate apparent equatorial coordinates. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
void ln_get_solar_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_solar_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * pos ition); | /*! \fn void ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * pos ition); | |||
* \brief Calculate apparent ecliptical coordinates. | * \brief Calculate apparent ecliptical coordinates. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
void ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * position); | void LIBNOVA_EXPORT ln_get_solar_ecl_coords (double JD, struct ln_lnlat_pos n * position); | |||
/*! \fn void ln_get_solar_geo_coords (double JD, struct ln_rect_posn * posi tion) | /*! \fn void ln_get_solar_geo_coords (double JD, struct ln_rect_posn * posi tion) | |||
* \brief Calculate geocentric coordinates (rectangular) | * \brief Calculate geocentric coordinates (rectangular) | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
void ln_get_solar_geo_coords (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_solar_geo_coords (double JD, struct ln_rect_posn * position); | |||
/*! \fn double ln_get_solar_sdiam (double JD) | /*! \fn double ln_get_solar_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of the Sun in arc seconds. | * \brief Calculate the semidiameter of the Sun in arc seconds. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
double ln_get_solar_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_solar_sdiam (double JD); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 9 change blocks. | ||||
9 lines changed or deleted | 9 lines changed or added | |||
transform.h | transform.h | |||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
/*! \defgroup transform Transformation of Coordinates | /*! \defgroup transform Transformation of Coordinates | |||
* | * | |||
* Transformations from one coordinate system to another. | * Transformations from one coordinate system to another. | |||
*/ | */ | |||
/*! \fn void ln_get_hrz_from_equ (struct ln_equ_posn * object, struct ln_ln lat_posn * observer, double JD, struct ln_hrz_posn *position); | /*! \fn void ln_get_hrz_from_equ (struct ln_equ_posn * object, struct ln_ln lat_posn * observer, double JD, struct ln_hrz_posn *position); | |||
* \brief Calculate horizontal coordinates from equatorial coordinates | * \brief Calculate horizontal coordinates from equatorial coordinates | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Use get_mean_sidereal_time, get_hrz_from_equ_siderealtime */ | /* Use get_mean_sidereal_time, get_hrz_from_equ_siderealtime */ | |||
void ln_get_hrz_from_equ (struct ln_equ_posn * object, struct ln_lnlat_posn * observer, double JD, struct ln_hrz_posn *position); | void LIBNOVA_EXPORT ln_get_hrz_from_equ (struct ln_equ_posn * object, struc t ln_lnlat_posn * observer, double JD, struct ln_hrz_posn *position); | |||
/*! \fn void ln_get_hrz_from_equ_sidereal_time (struct ln_equ_posn * object , struct ln_lnlat_posn * observer, double sidereal_time, struct ln_hrz_posn *position); | /*! \fn void ln_get_hrz_from_equ_sidereal_time (struct ln_equ_posn * object , struct ln_lnlat_posn * observer, double sidereal_time, struct ln_hrz_posn *position); | |||
* \brief Calculate horizontal coordinates from equatorial coordinates, | * \brief Calculate horizontal coordinates from equatorial coordinates, | |||
* using mean sidereal time. | * using mean sidereal time. | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Equ 12.5,12.6 pg 88 */ | /* Equ 12.5,12.6 pg 88 */ | |||
void ln_get_hrz_from_equ_sidereal_time (struct ln_equ_posn * object, struct ln_lnlat_posn * observer, double sidereal, struct ln_hrz_posn *position); | 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_po sn *position); | |||
/*! \fn void ln_get_equ_from_ecl (struct ln_lnlat_posn * object, double JD, struct ln_equ_posn * position); | /*! \fn void ln_get_equ_from_ecl (struct ln_lnlat_posn * object, double JD, struct ln_equ_posn * position); | |||
* \brief Calculate equatorial coordinates from ecliptical coordinates | * \brief Calculate equatorial coordinates from ecliptical coordinates | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Equ 12.3, 12.4 pg 89 */ | /* Equ 12.3, 12.4 pg 89 */ | |||
void ln_get_equ_from_ecl (struct ln_lnlat_posn * object, double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_equ_from_ecl (struct ln_lnlat_posn * object, dou ble JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_ecl_from_equ (struct ln_equ_posn * object, double JD, s truct ln_lnlat_posn * position); | /*! \fn void ln_get_ecl_from_equ (struct ln_equ_posn * object, double JD, s truct ln_lnlat_posn * position); | |||
* \brief Calculate ecliptical cordinates from equatorial coordinates | * \brief Calculate ecliptical coordinates from equatorial coordinates | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Equ 12.1, 12.2 Pg 88 */ | /* Equ 12.1, 12.2 Pg 88 */ | |||
void ln_get_ecl_from_equ (struct ln_equ_posn * object, double JD, struct ln _lnlat_posn * position); | void LIBNOVA_EXPORT ln_get_ecl_from_equ (struct ln_equ_posn * object, doubl e JD, struct ln_lnlat_posn * position); | |||
/*! \fn void ln_get_equ_from_hrz (struct ln_hrz_posn *object, struct ln_lnl at_posn * observer, double JD, struct ln_equ_posn * position); | /*! \fn void ln_get_equ_from_hrz (struct ln_hrz_posn *object, struct ln_lnl at_posn * observer, double JD, struct ln_equ_posn * position); | |||
* \brief Calculate equatorial coordinates from horizontal coordinates | * \brief Calculate equatorial coordinates from horizontal coordinates | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Pg 89 */ | /* Pg 89 */ | |||
void ln_get_equ_from_hrz (struct ln_hrz_posn *object, struct ln_lnlat_posn * observer, double JD, struct ln_equ_posn * position); | 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); | |||
/*! \fn void ln_get_rect_from_helio (struct ln_helio_posn *object, struct l n_rect_posn * position); | /*! \fn void ln_get_rect_from_helio (struct ln_helio_posn *object, struct l n_rect_posn * position); | |||
* \brief Calculate geocentric coordinates from heliocentric coordinates | * \brief Calculate geocentric coordinates from heliocentric coordinates | |||
* \ingroup transform | * \ingroup transform | |||
*/ | */ | |||
/* Pg ?? */ | /* Pg ?? */ | |||
void ln_get_rect_from_helio (struct ln_helio_posn *object, struct ln_rect_p osn * position); | void LIBNOVA_EXPORT ln_get_rect_from_helio (struct ln_helio_posn *object, s truct ln_rect_posn * position); | |||
/*! \fn void ln_get_ecl_from_rect (struct ln_rect_posn * rect, struct ln_ln lat_posn * posn) | /*! \fn void ln_get_ecl_from_rect (struct ln_rect_posn * rect, struct ln_ln lat_posn * posn) | |||
* \ingroup transform | * \ingroup transform | |||
* \brief Transform an objects rectangular coordinates into ecliptical coord inates. | * \brief Transform an objects rectangular coordinates into ecliptical coord inates. | |||
*/ | */ | |||
/* Equ 33.2 | /* Equ 33.2 | |||
*/ | */ | |||
void ln_get_ecl_from_rect (struct ln_rect_posn * rect, struct ln_lnlat_posn * posn); | void LIBNOVA_EXPORT ln_get_ecl_from_rect (struct ln_rect_posn * rect, struc t ln_lnlat_posn * posn); | |||
/*! \fn void ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln_equ_po sn *equ) | /*! \fn void ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln_equ_po sn *equ) | |||
* \ingroup transform | * \ingroup transform | |||
* \brief Transform an object galactic coordinates into equatorial coordinat es. | * \brief Transform an object galactic coordinates into equatorial coordinat es. | |||
*/ | */ | |||
/* Pg 94 */ | /* Pg 94 */ | |||
void ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln_equ_posn *equ) ; | void LIBNOVA_EXPORT ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln _equ_posn *equ); | |||
/*! \fn void ln_get_equ2000_from_gal (struct ln_gal_posn *gal, struct ln_eq u_posn *equ) | /*! \fn void ln_get_equ2000_from_gal (struct ln_gal_posn *gal, struct ln_eq u_posn *equ) | |||
* \ingroup transform | * \ingroup transform | |||
* \brief Transform an object galactic coordinate into J2000 equatorial coor dinates. | * \brief Transform an object galactic coordinate into J2000 equatorial coor dinates. | |||
*/ | */ | |||
void ln_get_equ2000_from_gal (struct ln_gal_posn *gal, struct ln_equ_posn * equ); | void LIBNOVA_EXPORT ln_get_equ2000_from_gal (struct ln_gal_posn *gal, struc t ln_equ_posn *equ); | |||
/*! \fn void ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln_gal_po sn *gal) | /*! \fn void ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln_gal_po sn *gal) | |||
* \ingroup transform | * \ingroup transform | |||
* \brief Transform an object equatorial coordinates into galactic coordinat es. | * \brief Transform an object equatorial coordinates into galactic coordinat es. | |||
*/ | */ | |||
/* Pg 94 */ | /* Pg 94 */ | |||
void ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln_gal_posn *gal) ; | void LIBNOVA_EXPORT ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln _gal_posn *gal); | |||
/*! \fn void ln_get_gal_from_equ2000 (struct ln_equ_posn *equ, struct ln_ga l_posn *gal) | /*! \fn void ln_get_gal_from_equ2000 (struct ln_equ_posn *equ, struct ln_ga l_posn *gal) | |||
* \ingroup transform | * \ingroup transform | |||
* \brief Transform an object J2000 equatorial coordinates into galactic coo rdinates. | * \brief Transform an object J2000 equatorial coordinates into galactic coo rdinates. | |||
*/ | */ | |||
void ln_get_gal_from_equ2000 (struct ln_equ_posn *equ, struct ln_gal_posn * gal); | void LIBNOVA_EXPORT ln_get_gal_from_equ2000 (struct ln_equ_posn *equ, struc t ln_gal_posn *gal); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 12 change blocks. | ||||
12 lines changed or deleted | 12 lines changed or added | |||
uranus.h | uranus.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup uranus Uranus | /*! \defgroup uranus Uranus | |||
* | * | |||
* Functions relating to the planet Uranus. | * Functions relating to the planet Uranus. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_uranus_sdiam (double JD) | /*! \fn double ln_get_uranus_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Uranus in arc seconds. | * \brief Calculate the semidiameter of Uranus in arc seconds. | |||
* \ingroup uranus | * \ingroup uranus | |||
*/ | */ | |||
double ln_get_uranus_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_uranus_sdiam (double JD); | |||
/*! \fn double ln_get_uranus_rst (double JD, struct ln_lnlat_posn * observe r, struct ln_rst_time * rst); | /*! \fn double ln_get_uranus_rst (double JD, struct ln_lnlat_posn * observe r, struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Uranus. | * \brief Calculate the time of rise, set and transit for Uranus. | |||
* \ingroup uranus | * \ingroup uranus | |||
*/ | */ | |||
int ln_get_uranus_rst (double JD, struct ln_lnlat_posn * observer, struct l n_rst_time * rst); | int LIBNOVA_EXPORT ln_get_uranus_rst (double JD, struct ln_lnlat_posn * obs erver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_uranus_helio_coords (double JD, struct ln_helio_posn * position); | /*! \fn void ln_get_uranus_helio_coords (double JD, struct ln_helio_posn * position); | |||
* \brief Calculate Uranus heliocentric coordinates | * \brief Calculate Uranus heliocentric coordinates | |||
* \ingroup uranus | * \ingroup uranus | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_uranus_helio_coords (double JD, struct ln_helio_posn * position ); | void LIBNOVA_EXPORT ln_get_uranus_helio_coords (double JD, struct ln_helio_ posn * position); | |||
/*! \fn void ln_get_uranus_equ_coords (double JD, struct ln_equ_posn * posi tion); | /*! \fn void ln_get_uranus_equ_coords (double JD, struct ln_equ_posn * posi tion); | |||
* \brief Calculate Uranus equatorial coordinates. | * \brief Calculate Uranus equatorial coordinates. | |||
* \ingroup uranus | * \ingroup uranus | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_uranus_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_uranus_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn double ln_get_uranus_earth_dist (double JD); | /*! \fn double ln_get_uranus_earth_dist (double JD); | |||
* \brief Calculate the distance between Uranus and the Earth. | * \brief Calculate the distance between Uranus and the Earth. | |||
* \ingroup uranus | * \ingroup uranus | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_uranus_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_uranus_earth_dist (double JD); | |||
/*! \fn double ln_get_uranus_solar_dist (double JD); | /*! \fn double ln_get_uranus_solar_dist (double JD); | |||
* \brief Calculate the distance between Uranus and the Sun. | * \brief Calculate the distance between Uranus and the Sun. | |||
* \ingroup uranus | * \ingroup uranus | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_uranus_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_uranus_solar_dist (double JD); | |||
/*! \fn double ln_get_uranus_magnitude (double JD); | /*! \fn double ln_get_uranus_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Uranus | * \brief Calculate the visible magnitude of Uranus | |||
* \ingroup uranus | * \ingroup uranus | |||
* \return Visible magnitude of Uranus | * \return Visible magnitude of Uranus | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_uranus_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_uranus_magnitude (double JD); | |||
/*! \fn double ln_get_uranus_disk (double JD); | /*! \fn double ln_get_uranus_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Uranus's disk | * \brief Calculate the illuminated fraction of Uranus's disk | |||
* \ingroup uranus | * \ingroup uranus | |||
* \return Illuminated fraction of Uranus disk | * \return Illuminated fraction of Uranus disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_uranus_disk (double JD); | double LIBNOVA_EXPORT ln_get_uranus_disk (double JD); | |||
/*! \fn double ln_get_uranus_phase (double JD); | /*! \fn double ln_get_uranus_phase (double JD); | |||
* \brief Calculate the phase angle of Uranus. | * \brief Calculate the phase angle of Uranus. | |||
* \ingroup uranus | * \ingroup uranus | |||
* \return Phase angle of Uranus (degrees) | * \return Phase angle of Uranus (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_uranus_phase (double JD); | double LIBNOVA_EXPORT ln_get_uranus_phase (double JD); | |||
/*! \fn void ln_get_uranus_rect_helio (double JD, struct ln_rect_posn * pos ition) | /*! \fn void ln_get_uranus_rect_helio (double JD, struct ln_rect_posn * pos ition) | |||
* \ingroup uranus | * \ingroup uranus | |||
* \brief Calculate Uranus rectangular heliocentric coordinates. | * \brief Calculate Uranus rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_uranus_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_uranus_rect_helio (double JD, struct ln_rect_pos n * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 11 change blocks. | ||||
11 lines changed or deleted | 11 lines changed or added | |||
utility.h | utility.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
// cbrt replacement | // cbrt replacement | |||
#define cbrt(x) pow (x,1.0/3.0) | #define cbrt(x) pow (x,1.0/3.0) | |||
// nan | // nan | |||
#define nan(x) 0 | #define nan(x) 0 | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup version Libnova library version information | /*! \defgroup version libnova library version information | |||
*/ | */ | |||
/*! \fn const char * ln_get_version (void) | /*! \fn const char * ln_get_version (void) | |||
* \brief Library Version Number | * \brief Library Version Number | |||
* \ingroup version | * \ingroup version | |||
*/ | */ | |||
const char * ln_get_version (void); | const char LIBNOVA_EXPORT * ln_get_version (void); | |||
/*! \defgroup misc Misc. Functions | /*! \defgroup misc Misc. Functions | |||
* | * | |||
* Misc functions. | * Misc functions. | |||
*/ | */ | |||
/*! \fn double ln_get_dec_location(char * s) | /*! \fn double ln_get_dec_location(char * s) | |||
* \ingroup misc | * \ingroup misc | |||
* \brief Obtains Latitude, Longitude, RA or Declination from a string. | * \brief Obtains Latitude, Longitude, RA or Declination from a string. | |||
*/ | */ | |||
double ln_get_dec_location(char *s); | double LIBNOVA_EXPORT ln_get_dec_location(char *s); | |||
/*! \fn char * ln_get_humanr_location(double location) | /*! \fn char * ln_get_humanr_location(double location) | |||
* \ingroup misc | * \ingroup misc | |||
* \brief Obtains a human readable location in the form: ddºmm'ss.ss" | * \brief Obtains a human readable location in the form: ddºmm'ss.ss" | |||
*/ | */ | |||
const char * ln_get_humanr_location(double location); | const char LIBNOVA_EXPORT * ln_get_humanr_location(double location); | |||
/* | /* | |||
* \fn double ln_get_rect_distance (struct ln_rect_posn * a, struct ln_rect_ posn * b) | * \fn double ln_get_rect_distance (struct ln_rect_posn * a, struct ln_rect_ posn * b) | |||
* \ingroup misc | * \ingroup misc | |||
*/ | */ | |||
double ln_get_rect_distance (struct ln_rect_posn * a, struct ln_rect_posn * b); | double LIBNOVA_EXPORT ln_get_rect_distance (struct ln_rect_posn * a, struct ln_rect_posn * b); | |||
/*! \defgroup conversion General Conversion Functions | /*! \defgroup conversion General Conversion Functions | |||
* | * | |||
* Conversion from one libnova type to another. | * Conversion from one libnova type to another. | |||
*/ | */ | |||
/*! \fn double ln_rad_to_deg (double radians) | /*! \fn double ln_rad_to_deg (double radians) | |||
* \brief radians to degrees | * \brief radians to degrees | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_rad_to_deg (double radians); | double LIBNOVA_EXPORT ln_rad_to_deg (double radians); | |||
/*! \fn double ln_deg_to_rad (double radians) | /*! \fn double ln_deg_to_rad (double radians) | |||
* \brief degrees to radians | * \brief degrees to radians | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_deg_to_rad (double degrees); | double LIBNOVA_EXPORT ln_deg_to_rad (double degrees); | |||
/*! \fn double ln_hms_to_deg (struct ln_hms * hms) | /*! \fn double ln_hms_to_deg (struct ln_hms * hms) | |||
* \brief hours to degrees | * \brief hours to degrees | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_hms_to_deg (struct ln_hms * hms); | double LIBNOVA_EXPORT ln_hms_to_deg (struct ln_hms * hms); | |||
/*! \fn void ln_deg_to_hms (double degrees, struct ln_hms * hms) | /*! \fn void ln_deg_to_hms (double degrees, struct ln_hms * hms) | |||
* \brief degrees to hours | * \brief degrees to hours | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_deg_to_hms (double degrees, struct ln_hms * hms); | void LIBNOVA_EXPORT ln_deg_to_hms (double degrees, struct ln_hms * hms); | |||
/*! \fn double ln_hms_to_rad (struct ln_hms * hms) | /*! \fn double ln_hms_to_rad (struct ln_hms * hms) | |||
* \brief hours to radians. | * \brief hours to radians. | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_hms_to_rad (struct ln_hms * hms); | double LIBNOVA_EXPORT ln_hms_to_rad (struct ln_hms * hms); | |||
/*! \fn void ln_deg_to_hms (double radians, struct ln_hms * hms) | /*! \fn void ln_deg_to_hms (double radians, struct ln_hms * hms) | |||
* \brief radians to hours | * \brief radians to hours | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_rad_to_hms (double radians, struct ln_hms * hms); | void LIBNOVA_EXPORT ln_rad_to_hms (double radians, struct ln_hms * hms); | |||
/*! \fn double ln_dms_to_deg (struct ln_dms * dms) | /*! \fn double ln_dms_to_deg (struct ln_dms * dms) | |||
* \brief dms to degrees | * \brief dms to degrees | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_dms_to_deg (struct ln_dms * dms); | double LIBNOVA_EXPORT ln_dms_to_deg (struct ln_dms * dms); | |||
/*! \fn void ln_deg_to_dms (double degrees, struct ln_dms * dms) | /*! \fn void ln_deg_to_dms (double degrees, struct ln_dms * dms) | |||
* \brief degrees to dms | * \brief degrees to dms | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_deg_to_dms (double degrees, struct ln_dms * dms); | void LIBNOVA_EXPORT ln_deg_to_dms (double degrees, struct ln_dms * dms); | |||
/*! \fn double ln_dms_to_rad (struct ln_dms * dms) | /*! \fn double ln_dms_to_rad (struct ln_dms * dms) | |||
* \brief dms to radians | * \brief dms to radians | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_dms_to_rad (struct ln_dms * dms); | double LIBNOVA_EXPORT ln_dms_to_rad (struct ln_dms * dms); | |||
/*! \fn void ln_rad_to_dms (double radians, struct ln_dms * dms) | /*! \fn void ln_rad_to_dms (double radians, struct ln_dms * dms) | |||
* \brief radians to dms | * \brief radians to dms | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_rad_to_dms (double radians, struct ln_dms * dms); | void LIBNOVA_EXPORT ln_rad_to_dms (double radians, struct ln_dms * dms); | |||
/*! \fn void ln_hequ_to_equ (struct lnh_equ_posn * hpos, struct ln_equ_posn * pos) | /*! \fn void ln_hequ_to_equ (struct lnh_equ_posn * hpos, struct ln_equ_posn * pos) | |||
* \brief human readable equatorial position to double equatorial position | * \brief human readable equatorial position to double equatorial position | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_hequ_to_equ (struct lnh_equ_posn * hpos, struct ln_equ_posn * pos); | void LIBNOVA_EXPORT ln_hequ_to_equ (struct lnh_equ_posn * hpos, struct ln_e qu_posn * pos); | |||
/*! \fn void ln_equ_to_hequ (struct ln_equ_posn * pos, struct lnh_equ_posn * hpos) | /*! \fn void ln_equ_to_hequ (struct ln_equ_posn * pos, struct lnh_equ_posn * hpos) | |||
* \brief human double equatorial position to human readable equatorial posi tion | * \brief human double equatorial position to human readable equatorial posi tion | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_equ_to_hequ (struct ln_equ_posn * pos, struct lnh_equ_posn * hpos); | void LIBNOVA_EXPORT ln_equ_to_hequ (struct ln_equ_posn * pos, struct lnh_eq u_posn * hpos); | |||
/*! \fn void ln_hhrz_to_hrz (struct lnh_hrz_posn * hpos, struct ln_hrz_posn * pos) | /*! \fn void ln_hhrz_to_hrz (struct lnh_hrz_posn * hpos, struct ln_hrz_posn * pos) | |||
* \brief human readable horizontal position to double horizontal position | * \brief human readable horizontal position to double horizontal position | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_hhrz_to_hrz (struct lnh_hrz_posn * hpos, struct ln_hrz_posn * pos); | void LIBNOVA_EXPORT ln_hhrz_to_hrz (struct lnh_hrz_posn * hpos, struct ln_h rz_posn * pos); | |||
/*! \fn void ln_hrz_to_hhrz (struct ln_hrz_posn * pos, struct lnh_hrz_posn * hpos) | /*! \fn void ln_hrz_to_hhrz (struct ln_hrz_posn * pos, struct lnh_hrz_posn * hpos) | |||
* \brief double horizontal position to human readable horizontal position | * \brief double horizontal position to human readable horizontal position | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_hrz_to_hhrz (struct ln_hrz_posn * pos, struct lnh_hrz_posn * hpos); | void LIBNOVA_EXPORT ln_hrz_to_hhrz (struct ln_hrz_posn * pos, struct lnh_hr z_posn * hpos); | |||
/*! \fn const char * ln_hrz_to_nswe (struct ln_hrz_posn * pos); | /*! \fn const char * ln_hrz_to_nswe (struct ln_hrz_posn * pos); | |||
* \brief returns direction of given azimut - like N,S,W,E,NSW,... | * \brief returns direction of given azimuth - like N,S,W,E,NSW,... | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
const char * ln_hrz_to_nswe (struct ln_hrz_posn * pos); | const char LIBNOVA_EXPORT * ln_hrz_to_nswe (struct ln_hrz_posn * pos); | |||
/*! \fn void ln_hlnlat_to_lnlat (struct lnh_lnlat_posn * hpos, struct ln_ln lat_posn * pos) | /*! \fn void ln_hlnlat_to_lnlat (struct lnh_lnlat_posn * hpos, struct ln_ln lat_posn * pos) | |||
* \brief human readable long/lat position to double long/lat position | * \brief human readable long/lat position to double long/lat position | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_hlnlat_to_lnlat (struct lnh_lnlat_posn * hpos, struct ln_lnlat_posn * pos); | void LIBNOVA_EXPORT ln_hlnlat_to_lnlat (struct lnh_lnlat_posn * hpos, struc t ln_lnlat_posn * pos); | |||
/*! \fn void ln_lnlat_to_hlnlat (struct ln_lnlat_posn * pos, struct lnh_lnl at_posn * hpos) | /*! \fn void ln_lnlat_to_hlnlat (struct ln_lnlat_posn * pos, struct lnh_lnl at_posn * hpos) | |||
* \brief double long/lat position to human readable long/lat position | * \brief double long/lat position to human readable long/lat position | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_lnlat_to_hlnlat (struct ln_lnlat_posn * pos, struct lnh_lnlat_posn * hpos); | void LIBNOVA_EXPORT ln_lnlat_to_hlnlat (struct ln_lnlat_posn * pos, struct lnh_lnlat_posn * hpos); | |||
/*! \fn void ln_add_secs_hms (struct ln_hms * hms, double seconds) | /*! \fn void ln_add_secs_hms (struct ln_hms * hms, double seconds) | |||
* \brief add seconds to hms | * \brief add seconds to hms | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_add_secs_hms (struct ln_hms * hms, double seconds); | void LIBNOVA_EXPORT ln_add_secs_hms (struct ln_hms * hms, double seconds); | |||
/*! \fn void ln_add_hms (struct ln_hms * source, struct ln_hms * dest) | /*! \fn void ln_add_hms (struct ln_hms * source, struct ln_hms * dest) | |||
* \brief add hms to hms | * \brief add hms to hms | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
void ln_add_hms (struct ln_hms * source, struct ln_hms * dest); | void LIBNOVA_EXPORT ln_add_hms (struct ln_hms * source, struct ln_hms * des t); | |||
/*! \fn void ln_range_degrees (double angle) | /*! \fn void ln_range_degrees (double angle) | |||
* \brief puts a large angle in the correct range 0 - 360 degrees | * \brief puts a large angle in the correct range 0 - 360 degrees | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_range_degrees (double angle); | double LIBNOVA_EXPORT ln_range_degrees (double angle); | |||
/*! \fn void ln_range_radians (double angle) | /*! \fn void ln_range_radians (double angle) | |||
* \brief puts a large angle in the correct range 0 - 2PI radians | * \brief puts a large angle in the correct range 0 - 2PI radians | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_range_radians (double angle); | double LIBNOVA_EXPORT ln_range_radians (double angle); | |||
double ln_range_radians2 (double angle); | double LIBNOVA_EXPORT ln_range_radians2 (double angle); | |||
/* | /* | |||
* \fn double ln_get_light_time (double dist) | * \fn double ln_get_light_time (double dist) | |||
* \brief Convert units of AU into light days. | * \brief Convert units of AU into light days. | |||
* \ingroup conversion | * \ingroup conversion | |||
*/ | */ | |||
double ln_get_light_time (double dist); | double LIBNOVA_EXPORT ln_get_light_time (double dist); | |||
/*! \fn double ln_interpolate3 (double n, double y1, double y2, double y3) | /*! \fn double ln_interpolate3 (double n, double y1, double y2, double y3) | |||
* \ingroup misc | * \ingroup misc | |||
* \brief Calculate an intermediate value of the 3 arguments. | * \brief Calculate an intermediate value of the 3 arguments. | |||
*/ | */ | |||
double ln_interpolate3 (double n, double y1, double y2, double y3); | double LIBNOVA_EXPORT ln_interpolate3 (double n, double y1, double y2, doub le y3); | |||
/*! \fn double ln_interpolate5 (double n, double y1, double y2, double y3, double y4, double y5) | /*! \fn double ln_interpolate5 (double n, double y1, double y2, double y3, double y4, double y5) | |||
* \ingroup misc | * \ingroup misc | |||
* \brief Calculate an intermediate value of the 5 arguments. | * \brief Calculate an intermediate value of the 5 arguments. | |||
*/ | */ | |||
double ln_interpolate5 (double n, double y1, double y2, double y3, double y 4, double y5); | double LIBNOVA_EXPORT ln_interpolate5 (double n, double y1, double y2, doub le y3, double y4, double y5); | |||
#ifdef __WIN32__ | #ifdef __WIN32__ | |||
/* Catches calls to the POSIX gmtime_r and converts them to a related WIN32 version. */ | /* Catches calls to the POSIX gmtime_r and converts them to a related WIN32 version. */ | |||
struct tm *gmtime_r (time_t *t, struct tm *gmt); | struct tm *gmtime_r (time_t *t, struct tm *gmt); | |||
/* Catches calls to the POSIX gettimeofday and converts them to a related W IN32 version. */ | /* Catches calls to the POSIX gettimeofday and converts them to a related W IN32 version. */ | |||
int gettimeofday(struct timeval *tp, struct timezone *tzp); | int gettimeofday(struct timeval *tp, struct timezone *tzp); | |||
/* Catches calls to the POSIX strtok_r and converts them to a related WIN32 version. */ | /* Catches calls to the POSIX strtok_r and converts them to a related WIN32 version. */ | |||
End of changes. 30 change blocks. | ||||
31 lines changed or deleted | 31 lines changed or added | |||
venus.h | venus.h | |||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#endif | #endif | |||
/*! \defgroup venus Venus | /*! \defgroup venus Venus | |||
* | * | |||
* Functions relating to the planet Venus. | * Functions relating to the planet Venus. | |||
* | * | |||
* All angles are expressed in degrees. | * All angles are expressed in degrees. | |||
*/ | */ | |||
/*! \fn double ln_get_venus_sdiam (double JD) | /*! \fn double ln_get_venus_sdiam (double JD) | |||
* \brief Calcaluate the semidiameter of Venus in arc seconds. | * \brief Calculate the semidiameter of Venus in arc seconds. | |||
* \ingroup venus | * \ingroup venus | |||
*/ | */ | |||
double ln_get_venus_sdiam (double JD); | double LIBNOVA_EXPORT ln_get_venus_sdiam (double JD); | |||
/*! \fn double ln_get_venus_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | /*! \fn double ln_get_venus_rst (double JD, struct ln_lnlat_posn * observer , struct ln_rst_time * rst); | |||
* \brief Calculate the time of rise, set and transit for Venus. | * \brief Calculate the time of rise, set and transit for Venus. | |||
* \ingroup venus | * \ingroup venus | |||
*/ | */ | |||
int ln_get_venus_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | int LIBNOVA_EXPORT ln_get_venus_rst (double JD, struct ln_lnlat_posn * obse rver, struct ln_rst_time * rst); | |||
/*! \fn void ln_get_venus_helio_coords (double JD, struct ln_helio_posn * p osition); | /*! \fn void ln_get_venus_helio_coords (double JD, struct ln_helio_posn * p osition); | |||
* \brief Calvulate Venus heliocentric coordinates | * \brief Calculate Venus heliocentric coordinates | |||
* \ingroup venus | * \ingroup venus | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_venus_helio_coords (double JD, struct ln_helio_posn * position) ; | void LIBNOVA_EXPORT ln_get_venus_helio_coords (double JD, struct ln_helio_p osn * position); | |||
/*! \fn void ln_get_venus_equ_coords (double JD, struct ln_equ_posn * posit ion); | /*! \fn void ln_get_venus_equ_coords (double JD, struct ln_equ_posn * posit ion); | |||
* \brief Calculate Venus equatorial coordinates | * \brief Calculate Venus equatorial coordinates | |||
* \ingroup venus | * \ingroup venus | |||
*/ | */ | |||
/* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */ | |||
void ln_get_venus_equ_coords (double JD, struct ln_equ_posn * position); | void LIBNOVA_EXPORT ln_get_venus_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn double ln_get_venus_earth_dist (double JD); | /*! \fn double ln_get_venus_earth_dist (double JD); | |||
* \brief Calculate the distance between Venus and the Earth. | * \brief Calculate the distance between Venus and the Earth. | |||
* \ingroup venus | * \ingroup venus | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_venus_earth_dist (double JD); | double LIBNOVA_EXPORT ln_get_venus_earth_dist (double JD); | |||
/*! \fn double ln_get_venus_solar_dist (double JD); | /*! \fn double ln_get_venus_solar_dist (double JD); | |||
* \brief Calculate the distance between Venus and the Sun. | * \brief Calculate the distance between Venus and the Sun. | |||
* \ingroup venus | * \ingroup venus | |||
* \return Distance in AU | * \return Distance in AU | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_venus_solar_dist (double JD); | double LIBNOVA_EXPORT ln_get_venus_solar_dist (double JD); | |||
/*! \fn double ln_get_venus_magnitude (double JD); | /*! \fn double ln_get_venus_magnitude (double JD); | |||
* \brief Calculate the visible magnitude of Venus | * \brief Calculate the visible magnitude of Venus | |||
* \ingroup venus | * \ingroup venus | |||
* \return Visible magnitude of Venus | * \return Visible magnitude of Venus | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_venus_magnitude (double JD); | double LIBNOVA_EXPORT ln_get_venus_magnitude (double JD); | |||
/*! \fn double ln_get_venus_disk (double JD); | /*! \fn double ln_get_venus_disk (double JD); | |||
* \brief Calculate the illuminated fraction of Venus disk | * \brief Calculate the illuminated fraction of Venus disk | |||
* \ingroup venus | * \ingroup venus | |||
* \return Illuminated fraction of Venus disk | * \return Illuminated fraction of Venus disk | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_venus_disk (double JD); | double LIBNOVA_EXPORT ln_get_venus_disk (double JD); | |||
/*! \fn double ln_get_venus_phase (double JD); | /*! \fn double ln_get_venus_phase (double JD); | |||
* \brief Calculate the phase angle of Venus. | * \brief Calculate the phase angle of Venus. | |||
* \ingroup venus | * \ingroup venus | |||
* \return Phase angle of Venus (degrees) | * \return Phase angle of Venus (degrees) | |||
*/ | */ | |||
/* Chapter 41 */ | /* Chapter 41 */ | |||
double ln_get_venus_phase (double JD); | double LIBNOVA_EXPORT ln_get_venus_phase (double JD); | |||
/*! \fn void ln_get_venus_rect_helio (double JD, struct ln_rect_posn * posi tion) | /*! \fn void ln_get_venus_rect_helio (double JD, struct ln_rect_posn * posi tion) | |||
* \ingroup venus | * \ingroup venus | |||
* \brief Calculate Venus rectangular heliocentric coordinates. | * \brief Calculate Venus rectangular heliocentric coordinates. | |||
*/ | */ | |||
void ln_get_venus_rect_helio (double JD, struct ln_rect_posn * position); | void LIBNOVA_EXPORT ln_get_venus_rect_helio (double JD, struct ln_rect_posn * position); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 12 change blocks. | ||||
12 lines changed or deleted | 12 lines changed or added | |||
vsop87.h | vsop87.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* Thanks to Messrs. Bretagnon and Francou for publishing planetary | * Thanks to Messrs. Bretagnon and Francou for publishing planetary | |||
* solution VSOP87. | * solution VSOP87. | |||
*/ | */ | |||
/*! \fn void ln_vsop87_to_fk5 (struct ln_helio_posn * position, double JD); | /*! \fn void ln_vsop87_to_fk5 (struct ln_helio_posn * position, double JD); | |||
* \ingroup VSOP87 | * \ingroup VSOP87 | |||
* \brief Transform from VSOP87 to FK5 reference system. | * \brief Transform from VSOP87 to FK5 reference system. | |||
*/ | */ | |||
/* equation 31.3 Pg 207 */ | /* equation 31.3 Pg 207 */ | |||
/* JD Julian Day */ | /* JD Julian Day */ | |||
void ln_vsop87_to_fk5 (struct ln_helio_posn * position, double JD); | void LIBNOVA_EXPORT ln_vsop87_to_fk5 (struct ln_helio_posn * position, doub le JD); | |||
struct ln_vsop | struct ln_vsop | |||
{ | { | |||
double A; | double A; | |||
double B; | double B; | |||
double C; | double C; | |||
}; | }; | |||
double ln_calc_series (const struct ln_vsop * data, int terms, double t); | double LIBNOVA_EXPORT ln_calc_series (const struct ln_vsop * data, int term s, double t); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||