libnova  v 0.15.0
lunar.h
00001 /*
00002  *  This library is free software; you can redistribute it and/or
00003  *  modify it under the terms of the GNU Lesser General Public
00004  *  License as published by the Free Software Foundation; either
00005  *  version 2 of the License, or (at your option) any later version.
00006  *
00007  *  This library is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00010  *  Lesser General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00015  *  
00016  *  Copyright (C) 2000 - 2005 Liam Girdwood  
00017  */
00018 
00019 #ifndef _LN_LUNAR_H
00020 #define _LN_LUNAR_H
00021 
00022 #include <libnova/ln_types.h>
00023 
00024 #define LN_LUNAR_STANDART_HORIZON               0.125
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00041 double LIBNOVA_EXPORT ln_get_lunar_sdiam (double JD);
00042 
00048 int LIBNOVA_EXPORT ln_get_lunar_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst);
00049 
00054 /* ELP 2000-82B theory */
00055 void LIBNOVA_EXPORT ln_get_lunar_geo_posn (double JD, struct ln_rect_posn * moon, double precision);
00056 
00061 void LIBNOVA_EXPORT ln_get_lunar_equ_coords_prec (double JD, struct ln_equ_posn * position, double precision);
00062 
00067 void LIBNOVA_EXPORT ln_get_lunar_equ_coords (double JD, struct ln_equ_posn * position);
00068 
00073 void LIBNOVA_EXPORT ln_get_lunar_ecl_coords (double JD, struct ln_lnlat_posn * position, double precision);
00074 
00079 double LIBNOVA_EXPORT ln_get_lunar_phase (double JD);
00080 
00085 double LIBNOVA_EXPORT ln_get_lunar_disk (double JD);
00086         
00091 double LIBNOVA_EXPORT ln_get_lunar_earth_dist (double JD);      
00092         
00097 double LIBNOVA_EXPORT ln_get_lunar_bright_limb (double JD);
00098 
00103 double LIBNOVA_EXPORT ln_get_lunar_long_asc_node (double JD);
00104 
00109 double LIBNOVA_EXPORT ln_get_lunar_long_perigee (double JD);
00110 
00111 #ifdef __cplusplus
00112 };
00113 #endif
00114 
00115 #endif