22#include <libnova/ln_types.h>
27#define cbrt(x) pow (x,1.0/3.0)
42const char LIBNOVA_EXPORT * ln_get_version (
void);
53double LIBNOVA_EXPORT ln_get_dec_location(
char *s);
60const char LIBNOVA_EXPORT * ln_get_humanr_location(
double location);
77double LIBNOVA_EXPORT ln_rad_to_deg (
double radians);
83double LIBNOVA_EXPORT ln_deg_to_rad (
double degrees);
89double LIBNOVA_EXPORT ln_hms_to_deg (
struct ln_hms * hms);
95void LIBNOVA_EXPORT ln_deg_to_hms (
double degrees,
struct ln_hms * hms);
101double LIBNOVA_EXPORT ln_hms_to_rad (
struct ln_hms * hms);
107void LIBNOVA_EXPORT ln_rad_to_hms (
double radians,
struct ln_hms * hms);
113double LIBNOVA_EXPORT ln_dms_to_deg (
struct ln_dms * dms);
119void LIBNOVA_EXPORT ln_deg_to_dms (
double degrees,
struct ln_dms * dms);
125double LIBNOVA_EXPORT ln_dms_to_rad (
struct ln_dms * dms);
131void LIBNOVA_EXPORT ln_rad_to_dms (
double radians,
struct ln_dms * dms);
161const char LIBNOVA_EXPORT * ln_hrz_to_nswe (
struct ln_hrz_posn * pos);
179void LIBNOVA_EXPORT ln_add_secs_hms (
struct ln_hms * hms,
double seconds);
185void LIBNOVA_EXPORT ln_add_hms (
struct ln_hms * source,
struct ln_hms * dest);
191double LIBNOVA_EXPORT ln_range_degrees (
double angle);
197double LIBNOVA_EXPORT ln_range_radians (
double angle);
198double LIBNOVA_EXPORT ln_range_radians2 (
double angle);
205double LIBNOVA_EXPORT ln_get_light_time (
double dist);
211double LIBNOVA_EXPORT ln_interpolate3 (
double n,
double y1,
double y2,
double y3);
217double LIBNOVA_EXPORT ln_interpolate5 (
double n,
double y1,
double y2,
double y3,
double y4,
double y5);
222struct tm *gmtime_r (time_t *t,
struct tm *gmt);
225int gettimeofday(
struct timeval *tp,
struct timezone *tzp);
228char *strtok_r(
char *str,
const char *sep,
char **last);
236double cbrt (
double x);
240#if defined(__WIN32__) || defined(sun) || defined(__C89_SUB__)
243double nan (
const char *code);
Degrees, minutes and seconds.
Definition ln_types.h:104
Equatorial Coordinates.
Definition ln_types.h:171
Hours, minutes and seconds.
Definition ln_types.h:118
Horizontal Coordinates.
Definition ln_types.h:185
Ecliptical (or celestial) Longitude and Latitude.
Definition ln_types.h:201
Rectangular coordinates.
Definition ln_types.h:238
Right Ascension and Declination.
Definition ln_types.h:131
Azimuth and Altitude.
Definition ln_types.h:143
Ecliptical (or celestial) Latitude and Longitude.
Definition ln_types.h:156