|
libnova
v 0.15.0
|
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_SOLAR_H 00020 #define _LN_SOLAR_H 00021 00022 #include <libnova/ln_types.h> 00023 00024 #define LN_SOLAR_STANDART_HORIZON -0.8333 00025 #define LN_SOLAR_CIVIL_HORIZON -6.0 00026 #define LN_SOLAR_NAUTIC_HORIZON -12.0 00027 #define LN_SOLAR_ASTRONOMICAL_HORIZON -18.0 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00045 int LIBNOVA_EXPORT ln_get_solar_rst_horizon (double JD, struct ln_lnlat_posn * observer, double horizon, struct ln_rst_time * rst); 00046 00051 int LIBNOVA_EXPORT ln_get_solar_rst (double JD, struct ln_lnlat_posn * observer, struct ln_rst_time * rst); 00052 00057 void LIBNOVA_EXPORT ln_get_solar_geom_coords (double JD, struct ln_helio_posn * position); 00058 00063 void LIBNOVA_EXPORT ln_get_solar_equ_coords (double JD, struct ln_equ_posn * position); 00064 00069 void LIBNOVA_EXPORT ln_get_solar_ecl_coords (double JD, struct ln_lnlat_posn * position); 00070 00075 void LIBNOVA_EXPORT ln_get_solar_geo_coords (double JD, struct ln_rect_posn * position); 00076 00081 double LIBNOVA_EXPORT ln_get_solar_sdiam (double JD); 00082 00083 #ifdef __cplusplus 00084 }; 00085 #endif 00086 00087 #endif
1.7.5.1