libnova  v 0.15.0
earth.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_EARTH_H
00020 #define _LN_EARTH_H
00021 
00022 #include <libnova/ln_types.h> 
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00036 /*
00037 ** Earth
00038 */
00039 
00044 /* Chapter 31 Pg 206-207 Equ 31.1 31.2 , 31.3 using VSOP 87 */
00045 void LIBNOVA_EXPORT ln_get_earth_helio_coords (double JD, struct ln_helio_posn * position);
00046 
00052 /* Chapter ?? */
00053 double LIBNOVA_EXPORT ln_get_earth_solar_dist (double JD);
00054         
00059 void LIBNOVA_EXPORT ln_get_earth_rect_helio (double JD, struct ln_rect_posn * position);
00060 
00065 void LIBNOVA_EXPORT ln_get_earth_centre_dist (float height, double latitude, double * p_sin_o, double * p_cos_o);
00066 
00067 #ifdef __cplusplus
00068 };
00069 #endif
00070 
00071 #endif