|
EGXPhys
|
Functions | |
| template<typename T > | |
| T | EGXMath::TurnToRadian (const T &turn) |
| Converts an angle in turn to radian. \[\alpha_{rad}=2\pi\alpha_{turn}\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToMilliradian (const T &turn) |
| Converts an angle in turn to milliradian. \[\alpha_{mrad}=2\pi\alpha_{turn}*10^3\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToDegree (const T &turn) |
| Converts an angle in turn to (decimal) degree. \[\alpha_{deg}=360\alpha_{turn}\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToDecimalDegree (const T &turn) |
| Converts an angle in turn to decimal degree. \[\alpha_{deg}=360\alpha_{turn}\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToArcdegree (const T &turn) |
| Converts an angle in turn to arcdegree (decimal degree). \[\alpha_{deg}=360\alpha_{turn}\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToIntegerDegree (const T &turn) |
| Converts an angle in turn to integer degree. \[\alpha_{deg\ int}=round(360\alpha_{turn})\] . More... | |
| template<typename T , typename T2 > | |
| T | EGXMath::TurnToBinaryDegree (const T &turn, const T2 &bits=8) |
| Converts an angle in turn to binary degree (brad). \[\alpha_{deg\ bin}=round(2^{(n-1)}\alpha_{turn})\] 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::TurnToArcminute (const T &turn) |
| Converts an angle in turn to arcminute. Note that arcminutes are not equal to minutes. \[\alpha_{arcmin}=\alpha_{turn} * 360 * 60\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToArcsecond (const T &turn) |
| Converts an angle in turn to arcsecond. Note that arcsecond are not equal to seconds. \[\alpha_{arcsec}=\alpha_{turn} * 360 * 60 * 60\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToMilliarcsecond (const T &turn) |
| Converts an angle in turn to milliarcsecond. \[\alpha_{mas}=\alpha_{turn}* 360 * 60 * 60 * 10^3\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToMicroarcsecond (const T &turn) |
| Converts an angle in turn to microarcsecond. \[\alpha_{\mu as}=\alpha_{turn} * 360 * 60 * 60 * 10^6\] . More... | |
| template<typename T > | |
| void | EGXMath::TurnToDegreesMinutesSeconds (const T &turn, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in turn to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More... | |
| template<typename T > | |
| void | EGXMath::TurnToDMS (const T &turn, T &integerDegree, T &arcminute, T &arcsecond) |
| Converts an angle in turn to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More... | |
| template<typename T > | |
| void | EGXMath::TurnToHoursMinutesSeconds (const T &turn, T &hour, T &minute, T &second) |
| Converts an angle in turn to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More... | |
| template<typename T > | |
| void | EGXMath::TurnToHMS (const T &turn, T &hour, T &minute, T &second) |
| Converts an angle in turn to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More... | |
| template<typename T > | |
| T | EGXMath::TurnToGradian (const T &turn) |
| Converts an angle in turn to gradian. \[\alpha_{g}=400\alpha_{turn}\] . More... | |
| template<typename T > | |
| T | EGXMath::TurnToGon (const T &turn) |
| Converts an angle in turn to gradian. \[\alpha_{g}=400\alpha_{turn}\] . More... | |
| template<typename T > | |
| std::string | EGXMath::TurnToCompassWind (const T &turn, const unsigned int winds, const bool abbreviate) |
| Converts an angle in turn to a n-Wind compass point name. More... | |
| T EGXMath::TurnToArcdegree | ( | const T & | turn | ) |
Converts an angle in turn to arcdegree (decimal degree).
\[\alpha_{deg}=360\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToArcminute | ( | const T & | turn | ) |
Converts an angle in turn to arcminute. Note that arcminutes are not equal to minutes.
\[\alpha_{arcmin}=\alpha_{turn} * 360 * 60\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToArcsecond | ( | const T & | turn | ) |
Converts an angle in turn to arcsecond. Note that arcsecond are not equal to seconds.
\[\alpha_{arcsec}=\alpha_{turn} * 360 * 60 * 60\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToBinaryDegree | ( | const T & | turn, |
| const T2 & | bits = 8 |
||
| ) |
Converts an angle in turn to binary degree (brad).
\[\alpha_{deg\ bin}=round(2^{(n-1)}\alpha_{turn})\]
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
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| bits | \(n\ (bit)\) is the number of bits avaliable to store the number. Defaults to 8. |
| std::string EGXMath::TurnToCompassWind | ( | const T & | turn, |
| const unsigned int | winds, | ||
| const bool | abbreviate | ||
| ) |
Converts an angle in turn to a n-Wind compass point name.
See https://en.wikipedia.org/wiki/Points_of_the_compass
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| 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::TurnToDecimalDegree | ( | const T & | turn | ) |
Converts an angle in turn to decimal degree.
\[\alpha_{deg}=360\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToDegree | ( | const T & | turn | ) |
Converts an angle in turn to (decimal) degree.
\[\alpha_{deg}=360\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| void EGXMath::TurnToDegreesMinutesSeconds | ( | const T & | turn, |
| T & | integerDegree, | ||
| T & | arcminute, | ||
| T & | arcsecond | ||
| ) |
Converts an angle in turn 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
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| 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::TurnToDMS | ( | const T & | turn, |
| T & | integerDegree, | ||
| T & | arcminute, | ||
| T & | arcsecond | ||
| ) |
Converts an angle in turn 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
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| 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::TurnToGon | ( | const T & | turn | ) |
Converts an angle in turn to gradian.
\[\alpha_{g}=400\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Gradian
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToGradian | ( | const T & | turn | ) |
Converts an angle in turn to gradian.
\[\alpha_{g}=400\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Gradian
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| void EGXMath::TurnToHMS | ( | const T & | turn, |
| T & | hour, | ||
| T & | minute, | ||
| T & | second | ||
| ) |
Converts an angle in turn 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
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| 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::TurnToHoursMinutesSeconds | ( | const T & | turn, |
| T & | hour, | ||
| T & | minute, | ||
| T & | second | ||
| ) |
Converts an angle in turn 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
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| 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::TurnToIntegerDegree | ( | const T & | turn | ) |
Converts an angle in turn to integer degree.
\[\alpha_{deg\ int}=round(360\alpha_{turn})\]
.
See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToMicroarcsecond | ( | const T & | turn | ) |
Converts an angle in turn to microarcsecond.
\[\alpha_{\mu as}=\alpha_{turn} * 360 * 60 * 60 * 10^6\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToMilliarcsecond | ( | const T & | turn | ) |
Converts an angle in turn to milliarcsecond.
\[\alpha_{mas}=\alpha_{turn}* 360 * 60 * 60 * 10^3\]
.
See https://en.wikipedia.org/wiki/Minute_and_second_of_arc
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToMilliradian | ( | const T & | turn | ) |
Converts an angle in turn to milliradian.
\[\alpha_{mrad}=2\pi\alpha_{turn}*10^3\]
.
See https://en.wikipedia.org/wiki/Milliradian
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |
| T EGXMath::TurnToRadian | ( | const T & | turn | ) |
Converts an angle in turn to radian.
\[\alpha_{rad}=2\pi\alpha_{turn}\]
.
See https://en.wikipedia.org/wiki/Radian
| turn | \(\alpha_{turn}\ (turn)\) is the angle in turns. |