Sun position
Sun position algorithm
|
Go to the documentation of this file.
63 #define INVALID_ANGLE (-2)
109 #if defined (PREDEF_STANDARD_C_1999)
120 #define skyio_radToDmsStr(destStr__, destStrSize__, angle_rad__, decimals__) \
121 skyio_degToDmsStr(destStr__, destStrSize__, \
122 radToDeg(angle_rad__), decimals__)
144 #if defined (PREDEF_STANDARD_C_1999)
155 #define skyio_radToHmsStr(destStr__, destStrSize__, angle_rad__, decimals__) \
156 skyio_hrsToHmsStr(destStr__, destStrSize__, \
157 radToHrs(angle_rad__), decimals__)
general.h - definitions of general use to (standard) C programs
static char * skyio_radToDmsStr(char destStr[], size_t destStrSize, double angle_rad, unsigned decimals)
Routine to take an angle in radian and return a string in degrees, arcminutes and arcseconds form - [...
static char * skyio_radToHmsStr(char destStr[], size_t destStrSize, double angle_rad, unsigned decimals)
Routine to take an angle in radian and return a string in hours, minutes and seconds form - "±HH:MM:S...
astron.h - assorted definitions useful for astronomy
char * skyio_hrsToHmsStr(char destStr[], size_t destStrSize, double angle_h, unsigned decimals)
Routine to take an angle in hours and return a string in hours, minutes and seconds form - "±HH:MM:SS...
double skyio_sxStrToAng(const char angleStr[], const char **endPtr, int *error)
Convert a string containing an angle (or a time) in sexagesimal format to the angle's value.
static double radToHrs(double angle_rad)
Returns angle_rad converted from radians to hours.
void skyio_printJ2kd(double j2kd)
Write out a J2KD as a calendar date and time.
char * skyio_degToDmsStr(char destStr[], size_t destStrSize, double angle_deg, unsigned decimals)
Routine to take an angle in degrees and return a string of the form [±]DDD°MM′SS.sss″ correctly round...
static double radToDeg(double angle_rad)
Returns angle_rad converted from radians to degrees.