22 #include <libnova/ln_types.h>
27 #define cbrt(x) pow(x,1.0/3.0)
66 double LIBNOVA_EXPORT ln_get_rect_distance(
struct ln_rect_posn *a,
108 void LIBNOVA_EXPORT ln_rad_to_hms(
double radians,
struct ln_hms *hms);
205 double LIBNOVA_EXPORT ln_range_radians2(
double angle);
212 double LIBNOVA_EXPORT ln_get_light_time(
double dist);
218 double LIBNOVA_EXPORT
ln_interpolate3(
double n,
double y1,
double y2,
double y3);
224 double LIBNOVA_EXPORT
ln_interpolate5(
double n,
double y1,
double y2,
double y3,
225 double y4,
double y5);
230 struct tm *gmtime_r (time_t *t,
struct tm *gmt);
234 int gettimeofday(
struct timeval *tp,
struct timezone *tzp);
238 char *strtok_r(
char *str,
const char *sep,
char **last);
246 double cbrt(
double x);
250 #if defined(__WIN32__) || defined(sun) || defined(__C89_SUB__)
253 double nan(
const char *code);
double LIBNOVA_EXPORT ln_range_radians(double angle)
puts a large angle in the correct range 0 - 2PI radians
Definition: utility.c:249
void LIBNOVA_EXPORT ln_lnlat_to_hlnlat(struct ln_lnlat_posn *pos, struct lnh_lnlat_posn *hpos)
double long/lat position to human readable long/lat position
Definition: utility.c:395
double LIBNOVA_EXPORT ln_rad_to_deg(double radians)
radians to degrees
Definition: utility.c:84
Rectangular coordinates.
Definition: ln_types.h:239
void LIBNOVA_EXPORT ln_hlnlat_to_lnlat(struct lnh_lnlat_posn *hpos, struct ln_lnlat_posn *pos)
human readable long/lat position to double long/lat position
Definition: utility.c:385
Horizontal Coordinates.
Definition: ln_types.h:189
double LIBNOVA_EXPORT ln_hms_to_rad(struct ln_hms *hms)
hours to radians.
Definition: utility.c:108
Degrees, minutes and seconds.
Definition: ln_types.h:114
void LIBNOVA_EXPORT ln_hhrz_to_hrz(struct lnh_hrz_posn *hpos, struct ln_hrz_posn *pos)
human readable horizontal position to double horizontal position
Definition: utility.c:352
Hours, minutes and seconds.
Definition: ln_types.h:127
void LIBNOVA_EXPORT ln_deg_to_dms(double degrees, struct ln_dms *dms)
degrees to dms
Definition: utility.c:194
void LIBNOVA_EXPORT ln_hequ_to_equ(struct lnh_equ_posn *hpos, struct ln_equ_posn *pos)
human readable equatorial position to double equatorial position
Definition: utility.c:332
double LIBNOVA_EXPORT ln_interpolate3(double n, double y1, double y2, double y3)
Calculate an intermediate value of the 3 arguments.
Definition: utility.c:623
Equatorial Coordinates.
Definition: ln_types.h:176
const char LIBNOVA_EXPORT * ln_hrz_to_nswe(struct ln_hrz_posn *pos)
returns direction of given azimuth - like N,S,W,E,NSW,...
Definition: utility.c:372
void LIBNOVA_EXPORT ln_equ_to_hequ(struct ln_equ_posn *pos, struct lnh_equ_posn *hpos)
human double equatorial position to human readable equatorial position
Definition: utility.c:342
double LIBNOVA_EXPORT ln_range_degrees(double angle)
puts a large angle in the correct range 0 - 360 degrees
Definition: utility.c:234
Ecliptical (or celestial) Longitude and Latitude.
Definition: ln_types.h:204
const char LIBNOVA_EXPORT * ln_get_humanr_location(double location)
Obtains a human readable location in the form: ddÂșmm'ss.ss".
Definition: utility.c:596
void LIBNOVA_EXPORT ln_add_secs_hms(struct ln_hms *hms, double seconds)
add seconds to hms
Definition: utility.c:280
void LIBNOVA_EXPORT ln_rad_to_dms(double radians, struct ln_dms *dms)
radians to dms
Definition: utility.c:225
Right Ascension and Declination.
Definition: ln_types.h:139
const char LIBNOVA_EXPORT * ln_get_version(void)
Library Version Number.
Definition: utility.c:77
void LIBNOVA_EXPORT ln_deg_to_hms(double degrees, struct ln_hms *hms)
degrees to hours
Definition: utility.c:121
double LIBNOVA_EXPORT ln_interpolate5(double n, double y1, double y2, double y3, double y4, double y5)
Calculate an intermediate value of the 5 arguments.
Definition: utility.c:651
double LIBNOVA_EXPORT ln_dms_to_rad(struct ln_dms *dms)
dms to radians
Definition: utility.c:178
Ecliptical (or celestial) Latitude and Longitude.
Definition: ln_types.h:162
Azimuth and Altitude.
Definition: ln_types.h:150
double LIBNOVA_EXPORT ln_hms_to_deg(struct ln_hms *hms)
hours to degrees
Definition: utility.c:96
double LIBNOVA_EXPORT ln_get_dec_location(char *s)
Obtains Latitude, Longitude, RA or Declination from a string.
Definition: utility.c:512
double LIBNOVA_EXPORT ln_dms_to_deg(struct ln_dms *dms)
dms to degrees
Definition: utility.c:162
double LIBNOVA_EXPORT ln_deg_to_rad(double degrees)
degrees to radians
Definition: utility.c:90
void LIBNOVA_EXPORT ln_hrz_to_hhrz(struct ln_hrz_posn *pos, struct lnh_hrz_posn *hpos)
double horizontal position to human readable horizontal position
Definition: utility.c:362
void LIBNOVA_EXPORT ln_add_hms(struct ln_hms *source, struct ln_hms *dest)
add hms to hms
Definition: utility.c:297