aberration.h | aberration.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_ABERRATION_H | #ifndef _LN_ABERRATION_H | |||
#define _LN_ABERRATION_H | #define _LN_ABERRATION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
angular_separation.h | angular_separation.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_ANGULAR_SEPARATION_H | #ifndef _LN_ANGULAR_SEPARATION_H | |||
#define _LN_ANGULAR_SEPARATION_H | #define _LN_ANGULAR_SEPARATION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
apparent_position.h | apparent_position.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_APPARENT_POSITION_H | #ifndef _LN_APPARENT_POSITION_H | |||
#define _LN_APPARENT_POSITION_H | #define _LN_APPARENT_POSITION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
asteroid.h | asteroid.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_ASTEROID_H | #ifndef _LN_ASTEROID_H | |||
#define _LN_ASTEROID_H | #define _LN_ASTEROID_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
comet.h | comet.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_COMET_H | #ifndef _LN_COMET_H | |||
#define _LN_COMET_H | #define _LN_COMET_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
dynamical_time.h | dynamical_time.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2000 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_DYNAMICAL_TIME_H | #ifndef _LN_DYNAMICAL_TIME_H | |||
#define _LN_DYNAMICAL_TIME_H | #define _LN_DYNAMICAL_TIME_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
earth.h | earth.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_EARTH_H | #ifndef _LN_EARTH_H | |||
#define _LN_EARTH_H | #define _LN_EARTH_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 48 | skipping to change at line 46 | |||
** 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 ln_get_earth_helio_coords (double JD, struct ln_helio_posn * position) ; | |||
/*! \fn void ln_get_earth_sun_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_sun_dist (double JD); | double 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 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. | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
elliptic_motion.h | elliptic_motion.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_ELLIPTIC_MOTION_H | #ifndef _LN_ELLIPTIC_MOTION_H | |||
#define _LN_ELLIPTIC_MOTION_H | #define _LN_ELLIPTIC_MOTION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
hyperbolic_motion.h | hyperbolic_motion.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_HYPERBOLIC_MOTION_H | #ifndef _LN_HYPERBOLIC_MOTION_H | |||
#define _LN_HYPERBOLIC_MOTION_H | #define _LN_HYPERBOLIC_MOTION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
julian_day.h | julian_day.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * 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 | |||
#include <time.h> | #include <time.h> | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 45 | skipping to change at line 44 | |||
* \brief Calculate the julian day from date. | * \brief Calculate the julian day from date. | |||
*/ | */ | |||
double ln_get_julian_day (struct ln_date * date); | double 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 ln_get_date (double JD, struct ln_date * date); | |||
/*! \fn void ln_get_local_date (double JD, struct ln_date * date) | /*! \fn void ln_get_local_date (double JD, struct ln_zonedate * zonedate) | |||
* \ingroup calender | * \ingroup calender | |||
* \brief Calculate the local date from the Julian day | * \brief Calculate the zone date from the Julian day | |||
*/ | */ | |||
void ln_get_local_date (double JD, struct ln_date * date); | void ln_get_local_date (double JD, struct ln_zonedate * zonedate); | |||
/*! \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 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 | |||
skipping to change at line 81 | skipping to change at line 80 | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
double ln_get_julian_from_timet (time_t * in_time); | double ln_get_julian_from_timet (time_t * in_time); | |||
/*! \fn void ln_get_timet_from_julian (double JD, time_t * time) | /*! \fn void ln_get_timet_from_julian (double JD, time_t * time) | |||
* \brief Calculate time_t from julian day | * \brief Calculate time_t from julian day | |||
* \ingroup calendar | * \ingroup calendar | |||
*/ | */ | |||
void ln_get_timet_from_julian (double JD, time_t * in_time); | void ln_get_timet_from_julian (double JD, time_t * in_time); | |||
/*! \fn double ln_get_julian_local_date(struct ln_date* date) | /*! \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_date* date); | double 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 ln_get_date_from_mpc (struct ln_date* date, char* mpc_date); | |||
/*! \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 ln_get_julian_from_mpc (char* mpc_date); | |||
/*! \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 | ||||
* \ingroup conversion | ||||
*/ | ||||
void ln_date_to_zonedate (struct ln_date * date, struct ln_zonedate * zoned | ||||
ate, long gmtoff); | ||||
/*! \fn void ln_zonedate_to_date (struct ln_zonedate * zonedate, struct ln_ | ||||
date * date) | ||||
* \brief convert ln_zonedate to ln_date | ||||
* \ingroup conversion | ||||
*/ | ||||
void ln_zonedate_to_date (struct ln_zonedate * zonedate, struct ln_date * d | ||||
ate); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 7 change blocks. | ||||
23 lines changed or deleted | 38 lines changed or added | |||
jupiter.h | jupiter.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Softwar | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_JUPITER_H | #ifndef _LN_JUPITER_H | |||
#define _LN_JUPITER_H | #define _LN_JUPITER_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 77 | skipping to change at line 75 | |||
void ln_get_jupiter_equ_coords (double JD, struct ln_equ_posn * position); | void ln_get_jupiter_equ_coords (double JD, struct ln_equ_posn * 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 ln_get_jupiter_earth_dist (double JD); | |||
/*! \fn double ln_get_jupiter_sun_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_sun_dist (double JD); | double 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 ln_get_jupiter_magnitude (double JD); | |||
/*! \fn double ln_get_jupiter_disk (double JD); | /*! \fn double ln_get_jupiter_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
libnova.h | libnova.h | |||
---|---|---|---|---|
/* This program is free software; you can redistribute it and/or modify | /* | |||
it under the terms of the GNU Library General Public License as published b | * This library is free software; you can redistribute it and/or | |||
y | * modify it under the terms of the GNU Lesser General Public | |||
the Free Software Foundation; either version 2 of the License, or | * License as published by the Free Software Foundation; either | |||
(at your option) any later version. | * version 2 of the License, or (at your option) any later version. | |||
* | ||||
This program is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
GNU General Public License for more details. | * Lesser General Public License for more details. | |||
* | ||||
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, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
SA. | ||||
Copyright (C) 2000 Liam Girdwood <liam@gnova.org> | * | |||
*/ | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
/*! \mainpage libnova | /*! \mainpage libnova | |||
* \image html libnova-logo.jpg | * \image html libnova-logo.jpg | |||
* Celestial Mechanics and Astronomical Calculation Library | * Celestial Mechanics, Astrometry and Astrodynamics Library | |||
* | * | |||
* \section intro Introduction | * \section intro Introduction | |||
* libnova is a general purpose, double precision, celestial mechanics and a stronomical calculation library. | * libnova is a general purpose, double precision, Celestial Mechanics, Astr ometry and Astrodynamics library. | |||
* | * | |||
* The intended audience of libnova is C / C++ programmers, astronomers and anyone else interested in calculating positions of astronomical objects or celestial mechanics. | * The intended audience of libnova is C / C++ programmers, astronomers and anyone else interested in calculating positions of astronomical objects or celestial mechanics. | |||
* libnova is the calculation engine used by the <A href="http://nova.sf.net ">Nova</A> project and most importantly, is free software. | * libnova is the calculation engine used by the <A href="http://nova.sf.net ">Nova</A> project and most importantly, is free software. | |||
* | * | |||
* \section features Features | * \section features Features | |||
* The current version of libnova can calculate: | * The current version of libnova can calculate: | |||
* | * | |||
* - Aberration | * - Aberration | |||
* - Nutation | * - Nutation | |||
* - Apparent Position | * - Apparent Position | |||
skipping to change at line 58 | skipping to change at line 59 | |||
* - 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.10.1 and was released on the 9th June 2004. | * The latest released version of libnova is 0.11. | |||
* 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. | |||
* Currently, we are needing help in the folowing areas. | * Currently, we are needing help in the folowing areas. | |||
* - Documentation. (Not just API reference, but also astronomy info for nov ice users) | * - Documentation. (Not just API reference, but also astronomy info for nov ice users) | |||
* - Programming (in C) astronomical solutions or algorithms. | * - Programming (in C) astronomical solutions or algorithms. | |||
* - Algorithms and Solutions. | * - Algorithms and Solutions. | |||
* - Website and logo. | ||||
* | ||||
* \section contact Contact | ||||
* If you would like further information, then please contact me <A href="ma | ||||
ilto:liam@gnova.org">here</A> | ||||
* Note: Email address has recently changed. | ||||
* | * | |||
* Liam Girdwood | * \section authors Authors | |||
* libnova is maintained by <A href="mailto:liam@gnova.org">Liam Girdwood</A | ||||
> and <A href="mailto:petr@kubanek.net">Petr Kubanek</A>. | ||||
* | * | |||
* \section thanks Thanks | * \section thanks Thanks | |||
* Thanks to Jean Meeus for most of the algorithms used in this library. | * Thanks to Jean Meeus for most of the algorithms used in this library. | |||
* From his book "Astronomical Algorithms". | * From his book "Astronomical Algorithms". | |||
* | * | |||
* Thanks to Michelle Chapront-Touze and Jean Chapront for publishing | * Thanks to Michelle Chapront-Touze and Jean Chapront for publishing | |||
* the Lunar Solution ELP 2000-82B. | * the Lunar Solution ELP 2000-82B. | |||
* | * | |||
* Thanks to Messrs. Bretagnon and Francou for publishing planetary | * Thanks to Messrs. Bretagnon and Francou for publishing planetary | |||
* solution VSOP87. | * solution VSOP87. | |||
* | * | |||
* Thanks to everyone who has submitted patches. NOTE: I sufferend a disk fa | ||||
ilure | ||||
* this year and lost a windows patch. I would be grateful if the author cou | ||||
ld | ||||
* resubmit it. | ||||
* | ||||
* Also thanks to Sourceforge for hosting this project. <A href="http://sour ceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=57697&am p;type=5" width="210" height="62" border="0" alt="SourceForge Logo"></A> | * Also thanks to Sourceforge for hosting this project. <A href="http://sour ceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=57697&am p;type=5" width="210" height="62" border="0" alt="SourceForge Logo"></A> | |||
*/ | */ | |||
#ifndef _LN_LIBNOVA_H | #ifndef _LN_LIBNOVA_H | |||
#define _LN_LIBNOVA_H | #define _LN_LIBNOVA_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#include <libnova/julian_day.h> | #include <libnova/julian_day.h> | |||
#include <libnova/dynamical_time.h> | #include <libnova/dynamical_time.h> | |||
#include <libnova/sidereal_time.h> | #include <libnova/sidereal_time.h> | |||
End of changes. 7 change blocks. | ||||
27 lines changed or deleted | 30 lines changed or added | |||
ln_types.h | ln_types.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * 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 */ | /* define some usefull constants if they are not already defined */ | |||
#ifndef M_PI_2 | #ifndef M_PI_2 | |||
skipping to change at line 40 | skipping to change at line 39 | |||
#define M_PI_4 0.78539816339744830961566084581988 | #define M_PI_4 0.78539816339744830961566084581988 | |||
#define M_PI 3.1415926535897932384626433832795 | #define M_PI 3.1415926535897932384626433832795 | |||
#endif | #endif | |||
/*! | /*! | |||
** Date | ** Date | |||
* \struct ln_date | * \struct ln_date | |||
* \brief Human readable Date and time used by libnova | * \brief Human readable Date and time used by libnova | |||
* | * | |||
* This is the Human readable (easy printf) date format used | * This is the Human readable (easy printf) date format used | |||
* by libnova. | * by libnova. It's always in UTC. For local time, please use | |||
* ln_zonedate. | ||||
*/ | */ | |||
struct ln_date | struct ln_date | |||
{ | { | |||
int years; /*!< Years. All values are valid */ | int years; /*!< Years. All values are valid */ | |||
int months; /*!< Months. Valid values : 1 (January) - 12 (December) */ | int months; /*!< Months. Valid values : 1 (January) - 12 (December) */ | |||
int days; /*!< Days. Valid values 1 - 28,29,30,31 Depends on m onth.*/ | int days; /*!< Days. Valid values 1 - 28,29,30,31 Depends on m onth.*/ | |||
int hours; /*!< Hours. Valid values 0 - 23. */ | int hours; /*!< Hours. Valid values 0 - 23. */ | |||
int minutes; /*!< Minutes. Valid values 0 - 59. */ | int minutes; /*!< Minutes. Valid values 0 - 59. */ | |||
double seconds; /*!< Seconds. Valid values 0 - 59.99999.... */ | double seconds; /*!< Seconds. Valid values 0 - 59.99999.... */ | |||
}; | }; | |||
/*! | ||||
** Zone date | ||||
* \struct ln_zonedate | ||||
* \brief Human readable Date and time with timezone information used | ||||
* by libnova | ||||
* | ||||
* This is the Human readable (easy printf) date with timezone format | ||||
* used by libnova. | ||||
*/ | ||||
struct ln_zonedate | ||||
{ | ||||
int years; /*!< Years. All values are valid */ | ||||
int months; /*!< Months. Valid values : 1 (January) - 12 | ||||
(December) */ | ||||
int days; /*!< Days. Valid values 1 - 28,29,30,31 Depends on m | ||||
onth.*/ | ||||
int hours; /*!< Hours. Valid values 0 - 23. */ | ||||
int minutes; /*!< Minutes. Valid values 0 - 59. */ | ||||
double seconds; /*!< Seconds. Valid values 0 - 59.99999.... */ | ||||
long gmtoff; /*!< Timezone offset. Seconds east of UTC. Valid va | ||||
lues 0..86400 */ | ||||
}; | ||||
/*! \struct ln_dms | /*! \struct ln_dms | |||
** \brief Degrees, minutes and seconds. | ** \brief Degrees, minutes and seconds. | |||
* | * | |||
* Human readable Angle in degrees, minutes and seconds | * Human readable Angle in degrees, minutes and seconds | |||
*/ | */ | |||
struct ln_dms | struct ln_dms | |||
{ | { | |||
unsigned short neg:1; /*!< Non zero if negative */ | unsigned short neg:1; /*!< Non zero if negative */ | |||
unsigned short degrees:9; /*!< Degrees. Valid 0 - 360 */ | unsigned short degrees:9; /*!< Degrees. Valid 0 - 360 */ | |||
unsigned short minutes:6; /*!< Minutes. Valid 0 - 59 */ | unsigned short minutes:6; /*!< Minutes. Valid 0 - 59 */ | |||
double seconds; /*!< Seconds. Valid 0 - 59.9999... */ | double seconds; /*!< Seconds. Valid | |||
0 - 59.9999... */ | ||||
}; | }; | |||
/*! \struct ln_hms | /*! \struct ln_hms | |||
** \brief Hours, minutes and seconds. | ** \brief Hours, minutes and seconds. | |||
* | * | |||
* Human readable Angle in hours, minutes and seconds | * Human readable Angle in hours, minutes and seconds | |||
*/ | */ | |||
struct ln_hms | struct ln_hms | |||
{ | { | |||
unsigned short hours:8; /*!< Hours. Valid 0 - 23 */ | unsigned short hours; /*!< Hours. Valid 0 - 23 */ | |||
unsigned short minutes:8; /*!< Minutes. Valid 0 - 59 */ | unsigned short minutes; /*!< Minutes. Valid 0 - 59 */ | |||
double seconds; /*!< Seconds. Valid 0 - 59.9999... */ | double seconds; /*!< Seconds. Valid 0 - 59.9 | |||
999... */ | ||||
}; | }; | |||
/*! \struct lnh_equ_posn | /*! \struct lnh_equ_posn | |||
** \brief Right Acsension and Declination. | ** \brief Right Acsension and Declination. | |||
* | * | |||
* Human readable Equatorial Coordinates. | * Human readable Equatorial Coordinates. | |||
*/ | */ | |||
struct lnh_equ_posn | struct lnh_equ_posn | |||
{ | { | |||
skipping to change at line 150 | skipping to change at line 171 | |||
double az; /*!< AZ. Object azimuth. <p> | double az; /*!< AZ. Object azimuth. <p> | |||
0 deg = South, 90 deg = West, 180 deg = Nord, 270 deg = Ea st */ | 0 deg = South, 90 deg = West, 180 deg = Nord, 270 deg = Ea st */ | |||
double alt; /*!< ALT. Object altitude. <p> 0 deg = horizon, 90 d eg = zenit, -90 deg = nadir */ | double alt; /*!< ALT. Object altitude. <p> 0 deg = horizon, 90 d eg = zenit, -90 deg = nadir */ | |||
}; | }; | |||
/*! \struct ln_lnlat_posn | /*! \struct ln_lnlat_posn | |||
** \brief Ecliptical (or celestial) Longitude and Latitude. | ** \brief Ecliptical (or celestial) Longitude and Latitude. | |||
* | * | |||
* The Ecliptical (or celestial) Latitude and Longitude of and object. | * The Ecliptical (or celestial) Latitude and Longitude of and object. | |||
* | * | |||
* Angles are expressed in degrees. | * Angles are expressed in degrees. East is positive, West negative. | |||
*/ | */ | |||
struct ln_lnlat_posn | struct ln_lnlat_posn | |||
{ | { | |||
double lng; /*!< longitude. Object longitude. */ | double lng; /*!< longitude. Object longitude. */ | |||
double lat; /*!< latitude. Object latitude */ | double lat; /*!< latitude. Object latitude */ | |||
}; | }; | |||
/*! \struct ln_helio_posn | /*! \struct ln_helio_posn | |||
* \brief Heliocentric position | * \brief Heliocentric position | |||
skipping to change at line 197 | skipping to change at line 218 | |||
* for the Moon. | * for the Moon. | |||
*/ | */ | |||
struct ln_rect_posn | struct ln_rect_posn | |||
{ | { | |||
double X; /*!< Rectangular X coordinate */ | double X; /*!< Rectangular X coordinate */ | |||
double Y; /*!< Rectangular Y coordinate */ | double Y; /*!< Rectangular Y coordinate */ | |||
double Z; /*!< Rectangular Z coordinate */ | double Z; /*!< Rectangular Z coordinate */ | |||
}; | }; | |||
/*! | /*! | |||
* \struct ln_gal_posn | ||||
* \brief Galactic coordinates | ||||
* | ||||
* The Galactic Latitude and Longitude of and object. | ||||
* | ||||
* Angles are expressed in degrees. | ||||
*/ | ||||
struct ln_gal_posn | ||||
{ | ||||
double l; /*!< Galactic longitude (degrees) */ | ||||
double b; /*!< Galactic latitude (degrees) */ | ||||
}; | ||||
/*! | ||||
* \struct ln_ell_orbit | * \struct ln_ell_orbit | |||
* \brief Elliptic Orbital elements | * \brief Elliptic Orbital elements | |||
* | * | |||
* TODO. | * TODO. | |||
* Angles are expressed in degrees. | * Angles are expressed in degrees. | |||
*/ | */ | |||
struct ln_ell_orbit | struct ln_ell_orbit | |||
{ | { | |||
double a; /*!< Semi major axis, in AU */ | double a; /*!< Semi major axis, in AU */ | |||
double e; /*!< Eccentricity */ | double e; /*!< Eccentricity */ | |||
End of changes. 7 change blocks. | ||||
27 lines changed or deleted | 67 lines changed or added | |||
lunar.h | lunar.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2002 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_LUNAR_H | #ifndef _LN_LUNAR_H | |||
#define _LN_LUNAR_H | #define _LN_LUNAR_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#define LN_LUNAR_STANDART_HORIZONT 0.125 | #define LN_LUNAR_STANDART_HORIZONT 0.125 | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
skipping to change at line 58 | skipping to change at line 57 | |||
int ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | int ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer, 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 ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double p recision); | |||
/*! \fn void ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * posit ion, 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 (double JD, struct ln_equ_posn * position, dou | void ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_posn * position | |||
ble precision); | , double precision); | |||
/*! \fn void ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * posit | ||||
ion); | ||||
* \brief Calculate lunar equatorial coordinates. | ||||
* \ingroup lunar | ||||
*/ | ||||
void 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 ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_posn * position, d ouble 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 | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 27 lines changed or added | |||
mars.h | mars.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_MARS_H | #ifndef _LN_MARS_H | |||
#define _LN_MARS_H | #define _LN_MARS_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 71 | skipping to change at line 69 | |||
void ln_get_mars_equ_coords (double JD, struct ln_equ_posn * position); | void 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 ln_get_mars_earth_dist (double JD); | |||
/*! \fn double ln_get_mars_sun_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_sun_dist (double JD); | double 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 ln_get_mars_magnitude (double JD); | |||
/*! \fn double ln_get_mars_disk (double JD); | /*! \fn double ln_get_mars_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
mercury.h | mercury.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_MERCURY_H | #ifndef _LN_MERCURY_H | |||
#define _LN_MERCURY_H | #define _LN_MERCURY_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 71 | skipping to change at line 69 | |||
void ln_get_mercury_equ_coords (double JD, struct ln_equ_posn * position); | void ln_get_mercury_equ_coords (double JD, struct ln_equ_posn * 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 ln_get_mercury_earth_dist (double JD); | |||
/*! \fn double ln_get_mercury_sun_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_sun_dist (double JD); | double 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 ln_get_mercury_magnitude (double JD); | |||
/*! \fn double ln_get_mercury_disk (double JD); | /*! \fn double ln_get_mercury_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
neptune.h | neptune.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_NEPTUNE_H | #ifndef _LN_NEPTUNE_H | |||
#define _LN_NEPTUNE_H | #define _LN_NEPTUNE_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 71 | skipping to change at line 69 | |||
void ln_get_neptune_equ_coords (double JD, struct ln_equ_posn * position); | void ln_get_neptune_equ_coords (double JD, struct ln_equ_posn * 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 ln_get_neptune_earth_dist (double JD); | |||
/*! \fn double ln_get_neptune_sun_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_sun_dist (double JD); | double 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 Visisble magnitude of Neptune. | |||
*/ | */ | |||
/* Chapter ?? */ | /* Chapter ?? */ | |||
double ln_get_neptune_magnitude (double JD); | double ln_get_neptune_magnitude (double JD); | |||
/*! \fn double ln_get_neptune_disk (double JD); | /*! \fn double ln_get_neptune_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
nutation.h | nutation.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2000 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
/* taken from table 21.A pg 133 */ | /* taken from table 21.A pg 133 */ | |||
#ifndef _LN_NUTATION_H | #ifndef _LN_NUTATION_H | |||
#define _LN_NUTATION_H | #define _LN_NUTATION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
parabolic_motion.h | parabolic_motion.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_PARABOLIC_MOTION_H | #ifndef _LN_PARABOLIC_MOTION_H | |||
#define _LN_PARABOLIC_MOTION_H | #define _LN_PARABOLIC_MOTION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
pluto.h | pluto.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Libary General Public License as published by | * modify it under the terms of the GNU Lesser General Public | |||
the Free Software Foundation; either version 2 of the License, or | * License as published by the Free Software Foundation; either | |||
(at your option) any later version. | * version 2 of the License, or (at your option) any later version. | |||
* | ||||
This program is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
GNU General Public License for more details. | * Lesser General Public License for more details. | |||
* | ||||
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, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
SA. | ||||
Copyright (C) 2001 Liam Girdwood <liam@gnova.org> | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
*/ | */ | |||
#ifndef _LN_PLUTO_H | #ifndef _LN_PLUTO_H | |||
#define _LN_PLUTO_H | #define _LN_PLUTO_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 70 | skipping to change at line 69 | |||
void ln_get_pluto_equ_coords (double JD, struct ln_equ_posn * position); | void 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 ln_get_pluto_earth_dist (double JD); | |||
/*! \fn double ln_get_pluto_sun_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_sun_dist (double JD); | double 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 ln_get_pluto_magnitude (double JD); | |||
/*! \fn double ln_get_pluto_disk (double JD); | /*! \fn double ln_get_pluto_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
19 lines changed or deleted | 19 lines changed or added | |||
precession.h | precession.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#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 | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
proper_motion.h | proper_motion.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#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 the proper motion of a star. | * \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 ln_get_equ_pm (struct ln_equ_posn * mean_position, struct 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) | ||||
* \brief Calculate a stars equatorial position wrt proper motion and epoch. | ||||
*/ | ||||
/* 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); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
20 lines changed or deleted | 28 lines changed or added | |||
refraction.h | refraction.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2004 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef _LN_REFRACTION_H | #ifndef _LN_REFRACTION_H | |||
#define _LN_REFRACTION_H | #define _LN_REFRACTION_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
rise_set.h | rise_set.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_RISE_SET_H | #ifndef _LN_RISE_SET_H | |||
#define _LN_RISE_SET_H | #define _LN_RISE_SET_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#define LN_STAR_STANDART_HORIZONT -0.5667 | #define LN_STAR_STANDART_HORIZONT -0.5667 | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
saturn.h | saturn.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_SATURN_H | #ifndef _LN_SATURN_H | |||
#define _LN_SATURN_H | #define _LN_SATURN_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 77 | skipping to change at line 75 | |||
void ln_get_saturn_equ_coords (double JD, struct ln_equ_posn * position); | void 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 ln_get_saturn_earth_dist (double JD); | |||
/*! \fn double ln_get_saturn_sun_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_sun_dist (double JD); | double 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 ln_get_saturn_magnitude (double JD); | |||
/*! \fn double ln_get_saturn_disk (double JD); | /*! \fn double ln_get_saturn_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
sidereal_time.h | sidereal_time.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Library General Public License as published b | * modify it under the terms of the GNU Lesser General Public | |||
y | * License as published by the Free Software Foundation; either | |||
the Free Software Foundation; either version 2 of the License, or | * version 2 of the License, or (at your option) any later version. | |||
(at your option) any later version. | * | |||
* This library is distributed in the hope that it will be useful, | ||||
This program is distributed in the hope that it will be useful, | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * Lesser General Public License for more details. | |||
GNU General Public License for more details. | * | |||
* 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 | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | SA. | |||
* | ||||
Copyright (C) 2000 Liam Girdwood <liam@gnova.org> | * Copyright (C) 2000 - 2005 Liam Girdwood | |||
*/ | ||||
*/ | ||||
#ifndef LN_SIDEREAL_TIME_H | #ifndef LN_SIDEREAL_TIME_H | |||
#define LN_SIDEREAL_TIME_H | #define LN_SIDEREAL_TIME_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
18 lines changed or deleted | 17 lines changed or added | |||
solar.h | solar.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_SOLAR_H | #ifndef _LN_SOLAR_H | |||
#define _LN_SOLAR_H | #define _LN_SOLAR_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#define LN_SOLAR_STANDART_HORIZONT -0.8333 | #define LN_SOLAR_STANDART_HORIZONT -0.8333 | |||
#define LN_SOLAR_CIVIL_HORIZONT -6.0 | #define LN_SOLAR_CIVIL_HORIZONT -6.0 | |||
#define LN_SOLAR_NAUTIC_HORIZONT -12.0 | #define LN_SOLAR_NAUTIC_HORIZONT -12.0 | |||
#define LN_SOLAR_ASTRONOMICAL_HORIZONT -18.0 | #define LN_SOLAR_ASTRONOMICAL_HORIZONT -18.0 | |||
skipping to change at line 43 | skipping to change at line 41 | |||
#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 double ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer | /*! \fn int ln_get_solar_rst_horizont (double JD, struct ln_lnlat_posn * ob | |||
, struct ln_rst_time * rst); | server, double horizont, struct ln_rst_time *rst); | |||
* \brief Return solar rise/set time over local horizont (specified in degre | ||||
es). | ||||
* \ingroup solar | ||||
*/ | ||||
int ln_get_solar_rst_horizont (double JD, struct ln_lnlat_posn * observer, | ||||
double horizont, struct 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 ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, struct ln _rst_time * rst); | |||
/*! \fn void ln_get_geom_solar_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_geom_solar_coords (double JD, struct ln_helio_posn * position); | void ln_get_solar_geom_coords (double JD, struct ln_helio_posn * position); | |||
/*! \fn void ln_get_equ_solar_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_equ_solar_coords (double JD, struct ln_equ_posn * position); | void ln_get_solar_equ_coords (double JD, struct ln_equ_posn * position); | |||
/*! \fn void ln_get_ecl_solar_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_ecl_solar_coords (double JD, struct ln_lnlat_posn * position); | void ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * position); | |||
/*! \fn void ln_get_geo_solar_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_geo_solar_coords (double JD, struct ln_rect_posn * position); | void 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 Calcaluate the semidiameter of the Sun in arc seconds. | |||
* \ingroup solar | * \ingroup solar | |||
*/ | */ | |||
double ln_get_solar_sdiam (double JD); | double ln_get_solar_sdiam (double JD); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
End of changes. 10 change blocks. | ||||
29 lines changed or deleted | 36 lines changed or added | |||
transform.h | transform.h | |||
---|---|---|---|---|
/* | /* | |||
This program is free software; you can redistribute it and/or modify | * This library is free software; you can redistribute it and/or | |||
it under the terms of the GNU Libary General Public License as published by | * modify it under the terms of the GNU Lesser General Public | |||
the Free Software Foundation; either version 2 of the License, or | * License as published by the Free Software Foundation; either | |||
(at your option) any later version. | * version 2 of the License, or (at your option) any later version. | |||
* | ||||
This program is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
GNU General Public License for more details. | * Lesser General Public License for more details. | |||
* | ||||
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, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
SA. | ||||
Copyright (C) 2000 Liam Girdwood <liam@gnova.org> | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
*/ | */ | |||
#ifndef _LN_TRANSFORM_H | #ifndef _LN_TRANSFORM_H | |||
#define _LN_TRANSFORM_H | #define _LN_TRANSFORM_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 79 | skipping to change at line 78 | |||
/*! \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 ln_get_rect_from_helio (struct ln_helio_posn *object, struct ln_rect_p osn * 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 | |||
* Transform an objects rectangular coordinates into ecliptical coordinates. | * \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 ln_get_ecl_from_rect (struct ln_rect_posn * rect, struct ln_lnlat_posn * posn); | |||
/*! \fn void ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln_equ_po | ||||
sn *equ) | ||||
* \ingroup transform | ||||
* \brief Transform an object galactic coordinates into equatorial coordinat | ||||
e. | ||||
*/ | ||||
/* Pg 94 */ | ||||
void ln_get_equ_from_gal (struct ln_gal_posn *gal, struct ln_equ_posn *equ) | ||||
; | ||||
/*! \fn void ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln_gal_po | ||||
sn *gal) | ||||
* \ingroup transform | ||||
* \brief Transform an object equatorial coordinate into galactic coordinate | ||||
s. | ||||
*/ | ||||
/* Pg 94 */ | ||||
void ln_get_gal_from_equ (struct ln_equ_posn *equ, struct ln_gal_posn *gal) | ||||
; | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
18 lines changed or deleted | 38 lines changed or added | |||
uranus.h | uranus.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_URANUS_H | #ifndef _LN_URANUS_H | |||
#define _LN_URANUS_H | #define _LN_URANUS_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 71 | skipping to change at line 69 | |||
void ln_get_uranus_equ_coords (double JD, struct ln_equ_posn * position); | void 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 ln_get_uranus_earth_dist (double JD); | |||
/*! \fn double ln_get_uranus_sun_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_sun_dist (double JD); | double 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 ln_get_uranus_magnitude (double JD); | |||
/*! \fn double ln_get_uranus_disk (double JD); | /*! \fn double ln_get_uranus_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
utility.h | utility.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_UTILITY_H | #ifndef _LN_UTILITY_H | |||
#define _LN_UTILITY_H | #define _LN_UTILITY_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||
venus.h | venus.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2004 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_VENUS_H | #ifndef _LN_VENUS_H | |||
#define _LN_VENUS_H | #define _LN_VENUS_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
skipping to change at line 71 | skipping to change at line 69 | |||
void ln_get_venus_equ_coords (double JD, struct ln_equ_posn * position); | void 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 ln_get_venus_earth_dist (double JD); | |||
/*! \fn double ln_get_venus_sun_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_sun_dist (double JD); | double 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 ln_get_venus_magnitude (double JD); | |||
/*! \fn double ln_get_venus_disk (double JD); | /*! \fn double ln_get_venus_disk (double JD); | |||
End of changes. 3 change blocks. | ||||
21 lines changed or deleted | 19 lines changed or added | |||
vsop87.h | vsop87.h | |||
---|---|---|---|---|
/* | /* | |||
* This library is free software; you can redistribute it and/or | ||||
This program is free software; you can redistribute it and/or modify | * modify it under the terms of the GNU Lesser General Public | |||
it under the terms of the GNU Library General Public License as published b | * License as published by the Free Software Foundation; either | |||
y | * version 2 of the License, or (at your option) any later version. | |||
the Free Software Foundation; either version 2 of the License, or | * | |||
(at your option) any later version. | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
This program is distributed in the hope that it will be useful, | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | * Lesser General Public License for more details. | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * | |||
GNU General Public License for more details. | * You should have received a copy of the GNU General Public License | |||
* along with this program; if not, write to the Free Software | ||||
You should have received a copy of the GNU General Public License | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U | |||
along with this program; if not, write to the Free Software | SA. | |||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * | |||
* Copyright (C) 2000 - 2005 Liam Girdwood | ||||
Copyright 2000 Liam Girdwood | */ | |||
*/ | ||||
#ifndef _LN_VSOP87_H | #ifndef _LN_VSOP87_H | |||
#define _LN_VSOP87_H | #define _LN_VSOP87_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added | |||