EGXPhys

Functions

template<typename T >
EGXPhys::DeclinationToDegree (const T integerDegree, const T arcminute, const T arcsecond)
 Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to (decimal) degrees.

\[\alpha_{deg}=DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600} \]

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc. More...

 
template<typename T >
void EGXPhys::DegreeToDeclination (const T decimalDegree, T &integerDegree, T &arcminute, T &arcsecond)
 Converts an angle in (decimal) degree to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.

\[DE_{deg}=trun(\alpha_{deg})\]

\[DE_{arcmin}=trun(60 * |\alpha_{deg} - degree|)\]

\[DE_{arcsec}=60 * ((60 * |\alpha_{deg} - degree|)-arcminute)\]

. More...

 
template<typename T >
EGXPhys::DeclinationToRadian (const T integerDegree, const T arcminute, const T arcsecond)
 Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to radians.

\[\alpha_{rad}=\frac{\pi}{180}(DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600})\]

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc. More...

 
template<typename T >
void EGXPhys::RadianToDeclination (const T radian, T &integerDegree, T &arcminute, T &arcsecond)
 Converts an angle in radian to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.

\[DE_{deg}=trun(\frac{180}{\pi}\alpha_{rad})\]

\[DE_{arcmin}=trun(60 * |\frac{180}{\pi}\alpha_{rad} - degree|)\]

\[DE_{arcsec}=60 * ((60 * |\frac{180}{\pi}\alpha_{rad} - degree|)-arcminute)\]

. More...

 

Detailed Description

Function Documentation

◆ DeclinationToDegree()

template<typename T >
T EGXPhys::DeclinationToDegree ( const T  integerDegree,
const T  arcminute,
const T  arcsecond 
)

Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to (decimal) degrees.

\[\alpha_{deg}=DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600} \]

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc.

Parameters
integerDegree\(degree\ (deg)\) is the angle in degrees in whole numbers.
arcminute\(arcminute\ (arcmin)\) is the angle in arcminute in whole numbers. Note that this is 1/60 of an degree. It is not equal to minutes.
arcsecond\(arcsecond\ (arcsec)\) is the angle in arcsecond. Note that this is 1/60 of a arcminute, not minute. It is not equal to seconds.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in (decimal) degrees.
See also
DegreesMinutesSecondsToDegree() for alias.
DMSToDegree() for alias.
DeclinationToRadian() for conversion from radians.

◆ DeclinationToRadian()

template<typename T >
T EGXPhys::DeclinationToRadian ( const T  integerDegree,
const T  arcminute,
const T  arcsecond 
)

Converts declination \((\alpha_{DE})\) from degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) to radians.

\[\alpha_{rad}=\frac{\pi}{180}(DE_{deg} + \frac{DE_{arcmin}}{60} + \frac{DE_{arcsec}}{3600})\]

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc.

Parameters
integerDegree\(degree\ (deg)\) is the angle in degrees in whole numbers.
arcminute\(arcminute\ (arcmin)\) is the angle in arcminute in whole numbers. Note that this is 1/60 of an degree. It is not equal to minutes.
arcsecond\(arcsecond\ (arcsec)\) is the angle in arcsecond. Note that this is 1/60 of a arcminute, not minute. It is not equal to seconds.
Returns
\(\alpha_{rad}\ (rad)\) is the angle in radians.
See also
DegreesMinutesSecondsToRadian() for alias.
DMSToRadian() for alias.
DeclinationToDegree() for conversion from (decimal) degrees.

◆ DegreeToDeclination()

template<typename T >
void EGXPhys::DegreeToDeclination ( const T  decimalDegree,
T &  integerDegree,
T &  arcminute,
T &  arcsecond 
)

Converts an angle in (decimal) degree to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.

\[DE_{deg}=trun(\alpha_{deg})\]

\[DE_{arcmin}=trun(60 * |\alpha_{deg} - degree|)\]

\[DE_{arcsec}=60 * ((60 * |\alpha_{deg} - degree|)-arcminute)\]

.

Where trunc is the integer truncation command.

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
decimalDegree\(\alpha_{deg}\ (deg)\) is the angle in (decimal) degrees.
integerDegree\(degree\ (deg int)\) is the angle in integer degrees.
arcminute\(arcminute\ (arcmin)\) is the angle in arcminutes in whole numbers. Note that this is 1/60 of an degree. It is not equal to minutes.
arcsecond\(arcsecond\ (arcsec)\) is the angle in arcseconds. Note that this is 1/60 of a arcminute, not minute. It is not equal to seconds.
See also
DegreeToDegreesMinutesSeconds() for alias.
DegreeToDMS() for alias.
DecimalDegreeToDegreesMinutesSeconds() for alias.
DecimalDegreeToDMS() for alias.
RadianToDeclination() for conversion from radians.

◆ RadianToDeclination()

template<typename T >
void EGXPhys::RadianToDeclination ( const T  radian,
T &  integerDegree,
T &  arcminute,
T &  arcsecond 
)

Converts an angle in radian to declination in degrees \((DE_{deg})\), arcminutes \((DE_{arcmin})\) and arcseconds \((DE_{arcsec})\) (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.

\[DE_{deg}=trun(\frac{180}{\pi}\alpha_{rad})\]

\[DE_{arcmin}=trun(60 * |\frac{180}{\pi}\alpha_{rad} - degree|)\]

\[DE_{arcsec}=60 * ((60 * |\frac{180}{\pi}\alpha_{rad} - degree|)-arcminute)\]

.

See https://en.wikipedia.org/wiki/Declination, https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
radian\(\alpha_{rad}\ (rad)\) is the angle in radians.
integerDegree\(degree\ (deg)\) is the angle in degrees in whole numbers.
arcminute\(arcminute\ (arcmin)\) is the angle in arcminute in whole numbers. Note that this is 1/60 of an degree. It is not equal to minutes.
arcsecond\(arcsecond\ (arcsec)\) is the angle in arcsecond. Note that this is 1/60 of a arcminute, not minute. It is not equal to seconds.
See also
RadianToDegreesMinutesSeconds() for alias.
RadianToDMS() for alias.
DegreeToDeclination() for conversion from (decimal) degrees.