Astro Namespace Reference
Astronomical coordinate systems and coordinate conversions, time and data functions.
More...
Classes
Enumerations
- enum month
- Symbolic constants for month names.
Functions
- coord operator- (const coord &P, const coord &Q)
- const char * scan_coord (const char *s, double &d)
- Parse some string containing some angular unit.
-
double deg_to_rad (register const double °ree)
- Convert degrees to radians.
-
double rad_to_deg (register const double &radiant)
- Convert radians to degrees.
-
double hour_to_rad (register const double °ree)
- Convert hours to radians.
-
double rad_to_hour (register const double °ree)
- Convert radians to hours.
-
double hour_to_deg (register const double &radiant)
- Convert hours to degrees.
-
double deg_to_hour (register const double &radiant)
- Convert degrees to hours.
-
double arcmin (register const double arcmins)
- Convert arc minutes to radians.
-
double arcsec (register const double arcsecs)
- Convert arc seconds to radians.
-
int Timezone (const geoastronomic &Ort, bool dl=false)
- Timezone of the given place (w/o daylight correction).
-
Date GMT_TZ (const Date &TZ, const geoastronomic &wo, bool dl=false)
- Greenwhichtime for Zonetime "TZ" at some place.
-
Date LT_TZ (const Date >, const geoastronomic &wo, bool dl=false)
- Locale Zonetime at Greenwhichtime GT at some place.
-
Date scandate (const char *c)
- compute date from string
-
Time scantime (const char *c)
- compute time from string
-
month scan_month (const char *mname)
- Get symbolic month constant from given textual string.
-
Time GST (const Date &datum)
- Greenwhich Mean Sidereal Time.
-
Date now ()
- Current date and time, from system clock.
Variables
-
const double sidrate = 0.9972695677
- Ratio of synodic (solar) to sidereal (stellar) rate.
-
lang Months [14]
- Month names, indices start with 1.
Function Documentation
| coord Astro::operator- |
( |
const coord & |
P, |
|
|
const coord & |
Q | |
|
) |
| | |
Uses
- 3x sin, 3x cos
- 2x atan2
- 1x sqrt
- 9 multiplications
- 4 additions
| const char * Astro::scan_coord |
( |
const char * |
s, |
|
|
double & |
d | |
|
) |
| | |
Possible known formats are:
- as radians: eg. 1.23
- as degrees: eg 60.12°
- as deg,min,sec: eg. 60°12'13.8"
- as hour format: eg. 4.23h
- as hours,min,sec: eg. 4h10m30s
- Returns:
- Pointer to the position of the string where parsing was terminated.