|
EGXPhys
|
Functions | |
| template<typename T > | |
| T | EGXPhys::RightAscensionToDegree (const T hour, const T minute, const T second) |
| Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to degrees. \[\alpha_{deg}=(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\] . More... | |
| template<typename T > | |
| T | EGXPhys::RightAscensionToRadian (const T hour, const T minute, const T second) |
| Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to radians. \[\alpha_{rad}=\frac{\pi}{180.0}(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\] See http://en.wikipedia.org/wiki/Right_ascension, http://en.wikipedia.org/wiki/Sidereal_hour_angle. More... | |
| template<typename T > | |
| void | EGXPhys::DegreeToRightAscension (const T decimalDegree, T &hour, T &minute, T &second) |
| Converts an angle in (decimal) degree to hours minutes seconds (HMS). \({HH}^{h}{MM}^{m}{SS.SS}^{s}\) format. \[hour=trun(\frac{\alpha_{deg}}{15})\] \[minute=trun(60 * |\frac{\alpha_{deg}}{15} - hour|)\] \[second=60 * ((60 * |\frac{\alpha_{deg}}{15} - hour|)-minute)\] . More... | |
| template<typename T > | |
| void | EGXPhys::RadianToRightAscension (const T radian, T &hour, T &minute, T &second) |
| Converts an angle in radian to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More... | |
| void EGXPhys::DegreeToRightAscension | ( | const T | decimalDegree, |
| T & | hour, | ||
| T & | minute, | ||
| T & | second | ||
| ) |
Converts an angle in (decimal) degree to hours minutes seconds (HMS). \({HH}^{h}{MM}^{m}{SS.SS}^{s}\) format.
\[hour=trun(\frac{\alpha_{deg}}{15})\]
\[minute=trun(60 * |\frac{\alpha_{deg}}{15} - hour|)\]
\[second=60 * ((60 * |\frac{\alpha_{deg}}{15} - hour|)-minute)\]
.
See and https://en.wikipedia.org/wiki/Right_ascension and https://en.wikipedia.org/wiki/Hour_angle
| decimalDegree | \(\alpha_{deg}\ (deg)\) is the angle in (decimal) degrees. |
| hour | \(RA_h\ (hour)\) is the angle in hours. |
| minute | \(RA_m\ (min)\) is the angle in minutes in whole numbers. Note that this is 1/60 of an hour. It is not equal to arcminutes. |
| second | \(RA_s\ (sec)\) is the angle in seconds. Note that this is 1/60 of a minute, not arcminute. It is not equal to arcseconds. |
| void EGXPhys::RadianToRightAscension | ( | const T | radian, |
| T & | hour, | ||
| T & | minute, | ||
| T & | second | ||
| ) |
Converts an angle in radian to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format.
See and https://en.wikipedia.org/wiki/Right_ascension and https://en.wikipedia.org/wiki/Hour_angle
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| hour | \(RA_h\ (h)\) is the angle in hours in whole numbers. |
| minute | \(RA_m\ (m)\) is the angle in minutes in whole numbers. Note that this is 1/60 of an hour. It is not equal to arcminutes. |
| second | \(RA_s\ (s)\) is the angle in seconds. Note that this is 1/60 of a minute. It is not equal to arcseconds. |
| T EGXPhys::RightAscensionToDegree | ( | const T | hour, |
| const T | minute, | ||
| const T | second | ||
| ) |
Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to degrees.
\[\alpha_{deg}=(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\]
.
See http://en.wikipedia.org/wiki/Right_ascension, http://en.wikipedia.org/wiki/Sidereal_hour_angle
| hour | \(RA_h\ (h)\) is the angle in hours in whole numbers. |
| minute | \(RA_m\ (m)\) is the angle in minutes in whole numbers. Note that this is 1/60 of an hour. It is not equal to arcminutes. |
| second | \(RA_s\ (s)\) is the angle in seconds. Note that this is 1/60 of a minute. It is not equal to arcseconds. |
| T EGXPhys::RightAscensionToRadian | ( | const T | hour, |
| const T | minute, | ||
| const T | second | ||
| ) |
Converts right ascensions \((\alpha_{RA})\) from hours \((RA_h)\), minutes \((RA_m)\) and seconds \((RA_s)\) to radians.
\[\alpha_{rad}=\frac{\pi}{180.0}(15 RA_h + \frac{RA_m}{4} + \frac{RA_s}{240})\]
See http://en.wikipedia.org/wiki/Right_ascension, http://en.wikipedia.org/wiki/Sidereal_hour_angle.
| hour | \(RA_h\ (h)\) is the angle in hours in whole numbers. |
| minute | \(RA_m\ (m)\) is the angle in minutes in whole numbers. Note that this is 1/60 of an hour. It is not equal to arcminutes. |
| second | \(RA_s\ (s)\) is the angle in seconds. Note that this is 1/60 of a minute. It is not equal to arcseconds. |