EGXPhys
Right Ascension

Functions

template<typename 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 >
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...
 

Detailed Description

Function Documentation

◆ DegreeToRightAscension()

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)\]

.

See and https://en.wikipedia.org/wiki/Right_ascension and https://en.wikipedia.org/wiki/Hour_angle

Parameters
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.
See also
DegreeToHoursMinutesSeconds() for alias.
DegreeToHMS() for alias.
RadianToRightAscension() for conversion from radians.

◆ RadianToRightAscension()

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.

See and https://en.wikipedia.org/wiki/Right_ascension and https://en.wikipedia.org/wiki/Hour_angle

Parameters
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.
See also
RadianToHoursMinutesSeconds() for alias.
RadianToHMS() for alias.
DegreeToRightAscension() for conversion from degrees.

◆ RightAscensionToDegree()

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})\]

.

See http://en.wikipedia.org/wiki/Right_ascension, http://en.wikipedia.org/wiki/Sidereal_hour_angle

Parameters
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.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in degrees.
See also
HoursMinutesSecondsToDegree() for alias.
HMSToDegree() for alias.
RightAscensionToRadian() for conversion from radians.

◆ RightAscensionToRadian()

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.

Parameters
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.
Returns
\(\alpha_{rad}\ (rad)\) is the angle in radians.
See also
HoursMinutesSecondsToRadian() for alias.
HMSToRadian() for alias.
RightAscensionToDegree() for conversion from (decimal) degrees.