|
EGXPhys
|
Functions | |
| template<typename T > | |
| T | EGXMath::RadianToMilliradian (const T &radian) |
| Converts an angle in radian to milliradian. \[\alpha_{mrad}=\alpha_{rad}*10^3\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToTurn (const T &radian) |
| Converts an angle in radian to turn. \[\alpha_{turn}=\alpha_{rad}\frac{1}{2 \pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToDegree (const T &radian) |
| Converts an angle in radian to (decimal) degree. \[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToDecimalDegree (const T &radian) |
| Converts an angle in radian to decimal degree. \[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToArcdegree (const T &radian) |
| Converts an angle in radian to arcdegree (decimal degree). \[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToIntegerDegree (const T &radian) |
| Converts an angle in radian to integer degree. \[\alpha_{deg\ int}=round(\alpha_{rad}\frac{180}{\pi})\] . More... | |
| template<typename T , typename T2 > | |
| T | EGXMath::RadianToBinaryDegree (const T &radian, const T2 &bits=8) |
| Converts an angle in radian to binary degree (brad). \[\alpha_{deg\ bin}=round(\alpha_{rad}\frac{2^{(n-1)}}{2 \pi})\] Where \(n\) is the number of bits avaliable to store the number. \(n\) defaults to 8, the tradiational number for binary degrees. More... | |
| template<typename T > | |
| T | EGXMath::RadianToArcminute (const T &radian) |
| Converts an angle in radian to arcminute. Note that arcminutes are not equal to minutes. \[\alpha_{arcmin}=\alpha_{rad}\frac{180 * 60}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToArcsecond (const T &radian) |
| Converts an angle in radian to arcsecond. Note that arcsecond are not equal to seconds. \[\alpha_{arcsec}=\alpha_{rad}\frac{180 * 60 * 60}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToMilliarcsecond (const T &radian) |
| Converts an angle in radian to milliarcsecond. \[\alpha_{mas}=\alpha_{rad}\frac{180 * 60 * 60 * 10^3}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToMicroarcsecond (const T &radian) |
| Converts an angle in radian to microarcsecond. \[\alpha_{\mu as}=\alpha_{rad}\frac{180 * 60 * 60 * 10^6}{\pi}\] . More... | |
| template<typename T > | |
| void | EGXMath::RadianToDegreesMinutesSeconds (const T &radian, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in radian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More... | |
| template<typename T > | |
| void | EGXMath::RadianToDMS (const T &radian, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in radian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More... | |
| template<typename T > | |
| void | EGXMath::RadianToHoursMinutesSeconds (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... | |
| template<typename T > | |
| void | EGXMath::RadianToHMS (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... | |
| template<typename T > | |
| T | EGXMath::RadianToGradian (const T &radian) |
| Converts an angle in radian to gradian. \[\alpha_{g}=\alpha_{rad}\frac{200}{\pi}\] . More... | |
| template<typename T > | |
| T | EGXMath::RadianToGon (const T &radian) |
| Converts an angle in radian to gradian. \[\alpha_{g}=\alpha_{rad}\frac{200}{\pi}\] . More... | |
| template<typename T > | |
| std::string | EGXMath::RadianToCompassWind (const T &radian, const unsigned int winds, const bool abbreviate) |
| Converts an angle in radian to a n-Wind compass point name. More... | |
| T EGXMath::RadianToArcdegree | ( | const T & | radian | ) |
Converts an angle in radian to arcdegree (decimal degree).
\[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToArcminute | ( | const T & | radian | ) |
Converts an angle in radian to arcminute. Note that arcminutes are not equal to minutes.
\[\alpha_{arcmin}=\alpha_{rad}\frac{180 * 60}{\pi}\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToArcsecond | ( | const T & | radian | ) |
Converts an angle in radian to arcsecond. Note that arcsecond are not equal to seconds.
\[\alpha_{arcsec}=\alpha_{rad}\frac{180 * 60 * 60}{\pi}\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToBinaryDegree | ( | const T & | radian, |
| const T2 & | bits = 8 |
||
| ) |
Converts an angle in radian to binary degree (brad).
\[\alpha_{deg\ bin}=round(\alpha_{rad}\frac{2^{(n-1)}}{2 \pi})\]
Where \(n\) is the number of bits avaliable to store the number. \(n\) defaults to 8, the tradiational number for binary degrees.
See https://en.wikipedia.org/wiki/Binary_scaling#Binary_angles and https://www.globalspec.com/reference/14722/160210/Chapter-7-5-3-Binary-Angular-Measure
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| bits | \(n\ (bit)\) is the number of bits avaliable to store the number. Defaults to 8. |
| std::string EGXMath::RadianToCompassWind | ( | const T & | radian, |
| const unsigned int | winds, | ||
| const bool | abbreviate | ||
| ) |
Converts an angle in radian to a n-Wind compass point name.
See https://en.wikipedia.org/wiki/Points_of_the_compass
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| winds | \(winds\ (int)\) The number of points(names) that the compass should have. Must be 2,4,8,16 or 32. |
| abbreviate | \(abbreviate\ (bool)\) should the compass point name be abbreviated. |
| T EGXMath::RadianToDecimalDegree | ( | const T & | radian | ) |
Converts an angle in radian to decimal degree.
\[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToDegree | ( | const T & | radian | ) |
Converts an angle in radian to (decimal) degree.
\[\alpha_{deg}=\alpha_{rad}\frac{180}{\pi}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| void EGXMath::RadianToDegreesMinutesSeconds | ( | const T & | radian, |
| T & | integerDegree, | ||
| T & | arcminute, | ||
| T & | arcsecond | ||
| ) |
Converts an angle in radian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.
See https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| integerDegree | \(degree\ (deg int)\) 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. |
| void EGXMath::RadianToDMS | ( | const T & | radian, |
| T & | integerDegree, | ||
| T & | arcminute, | ||
| T & | arcsecond | ||
| ) |
Converts an angle in radian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format.
See https://en.wikipedia.org/wiki/Geographic_coordinate_conversion and https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| 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. |
| T EGXMath::RadianToGon | ( | const T & | radian | ) |
Converts an angle in radian to gradian.
\[\alpha_{g}=\alpha_{rad}\frac{200}{\pi}\]
.
See https://en.wikipedia.org/wiki/Gradian
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToGradian | ( | const T & | radian | ) |
Converts an angle in radian to gradian.
\[\alpha_{g}=\alpha_{rad}\frac{200}{\pi}\]
.
See https://en.wikipedia.org/wiki/Gradian
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| void EGXMath::RadianToHMS | ( | 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 | \(hour\ (h)\) is the angle in hours in whole numbers. |
| minute | \(minute\ (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 | \(second\ (s)\) is the angle in seconds. Note that this is 1/60 of a minute. It is not equal to arcseconds. |
| void EGXMath::RadianToHoursMinutesSeconds | ( | 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 | \(hour\ (h)\) is the angle in hours in whole numbers. |
| minute | \(minute\ (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 | \(second\ (s)\) is the angle in seconds. Note that this is 1/60 of a minute. It is not equal to arcseconds. |
| T EGXMath::RadianToIntegerDegree | ( | const T & | radian | ) |
Converts an angle in radian to integer degree.
\[\alpha_{deg\ int}=round(\alpha_{rad}\frac{180}{\pi})\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToMicroarcsecond | ( | const T & | radian | ) |
Converts an angle in radian to microarcsecond.
\[\alpha_{\mu as}=\alpha_{rad}\frac{180 * 60 * 60 * 10^6}{\pi}\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToMilliarcsecond | ( | const T & | radian | ) |
Converts an angle in radian to milliarcsecond.
\[\alpha_{mas}=\alpha_{rad}\frac{180 * 60 * 60 * 10^3}{\pi}\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToMilliradian | ( | const T & | radian | ) |
Converts an angle in radian to milliradian.
\[\alpha_{mrad}=\alpha_{rad}*10^3\]
.
See https://en.wikipedia.org/wiki/Milliradian
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |
| T EGXMath::RadianToTurn | ( | const T & | radian | ) |
Converts an angle in radian to turn.
\[\alpha_{turn}=\alpha_{rad}\frac{1}{2 \pi}\]
.
See https://en.wikipedia.org/wiki/Turn_(geometry)
| radian | \(\alpha_{rad}\ (rad)\) is the angle in radians. |