EGXPhys

Functions

template<typename T >
EGXMath::TurnToRadian (const T &turn)
 Converts an angle in turn to radian.

\[\alpha_{rad}=2\pi\alpha_{turn}\]

. More...

 
template<typename 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 >
EGXMath::TurnToDegree (const T &turn)
 Converts an angle in turn to (decimal) degree.

\[\alpha_{deg}=360\alpha_{turn}\]

. More...

 
template<typename T >
EGXMath::TurnToDecimalDegree (const T &turn)
 Converts an angle in turn to decimal degree.

\[\alpha_{deg}=360\alpha_{turn}\]

. More...

 
template<typename T >
EGXMath::TurnToArcdegree (const T &turn)
 Converts an angle in turn to arcdegree (decimal degree).

\[\alpha_{deg}=360\alpha_{turn}\]

. More...

 
template<typename 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 >
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 >
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 >
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 >
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 >
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 >
EGXMath::TurnToGradian (const T &turn)
 Converts an angle in turn to gradian.

\[\alpha_{g}=400\alpha_{turn}\]

. More...

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

Detailed Description

Function Documentation

◆ TurnToArcdegree()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in arcdegree (decimal degree).
See also
TurnToDegree() for alias.
TurnToDecimalDegree() for alias.
DegreeToArcdegree() for conversion from (decimal) degrees.
DecimalDegreeToArcdegree() for conversion from decimal degrees.
RadianToArcdegree() for conversion from radians.
IntegerDegreeToArcdegree() for conversion from integer degrees.
BinaryDegreeToArcdegree() for conversion from binary degrees.
TurnToArcdegree() for conversion from turns.
GradianToArcdegree() for conversion from gradians.
HoursMinutesSecondsToArcdegree() for conversion from hours minutes seconds.
DegreesMinutesSecondsToArcdegree() for conversion from degrees minutes seconds.
CompassWindToArcdegree() for conversion from compass wind.

◆ TurnToArcminute()

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

.

See https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{arcmin}\ (arcmin)\) is the angle in arcminutes. Note that this is 1/60 of an degree. It is not equal to minutes.
See also
DegreeToArcminute() for conversion from (decimal) degrees.
DecimalDegreeToArcminute() for conversion from decimal degrees.
RadianToArcminute() for conversion from radians.
IntegerDegreeToArcminute() for conversion from integer degrees.
BinaryDegreeToArcminute() for conversion from binary degrees.
TurnToArcminute() for conversion from turns.
GradianToArcminute() for conversion from gradians.
HoursMinutesSecondsToArcminute() for conversion from hours minutes seconds.
DegreesMinutesSecondsToArcminute() for conversion from degrees minutes seconds.
CompassWindToArcminute() for conversion from compass wind.

◆ TurnToArcsecond()

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

.

See https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{arcsec}\ (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
DegreeToArcsecond() for conversion from (decimal) degrees.
DecimalDegreeToArcsecond() for conversion from decimal degrees.
RadianToArcsecond() for conversion from radians.
IntegerDegreeToArcsecond() for conversion from integer degrees.
BinaryDegreeToArcsecond() for conversion from binary degrees.
TurnToArcsecond() for conversion from turns.
GradianToArcsecond() for conversion from gradians.
HoursMinutesSecondsToArcsecond() for conversion from hours minutes seconds.
DegreesMinutesSecondsToArcsecond() for conversion from degrees minutes seconds.
CompassWindToArcsecond() for conversion from compass wind.

◆ TurnToBinaryDegree()

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.

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

Parameters
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.
Returns
\(\alpha_{deg\ bin}\ (brad)\) is the angle in binary degrees.
See also
DegreeToBinaryDegree() for conversion from (decimal) degrees.
DecimalDegreeToBinaryDegree() for conversion from decimal degrees.
RadianToBinaryDegree() for conversion from radians.
IntegerDegreeToBinaryDegree() for conversion from integer degrees.
BinaryDegreeToBinaryDegree() for conversion from binary degrees.
TurnToBinaryDegree() for conversion from turns.
GradianToBinaryDegree() for conversion from gradians.
HoursMinutesSecondsToBinaryDegree() for conversion from hours minutes seconds.
DegreesMinutesSecondsToBinaryDegree() for conversion from degrees minutes seconds.
CompassWindToBinaryDegree() for conversion from compass wind.

◆ TurnToCompassWind()

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.

See https://en.wikipedia.org/wiki/Points_of_the_compass

Parameters
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.
Returns
\(point\ name\ (dimensionless)\) is the name of the compass point.
See also
DegreeToCompassWind() for full explination of conversion and conversion from (decimal) degrees.
DecimalDegreeToCompassWind() for conversion from decimal degrees.
RadianToCompassWind() for conversion from radians.
IntegerDegreeToCompassWind() for conversion from integer degrees.
BinaryDegreeToCompassWind() for conversion from binary degrees.
TurnToCompassWind() for conversion from turns.
GradianToCompassWind() for conversion from gradians.
HoursMinutesSecondsToCompassWind() for conversion from hours minutes seconds.
DegreesMinutesSecondsToCompassWind() for conversion from degrees minutes seconds.
CompassWindToCompassWind() for conversion from degrees minutes seconds.

◆ TurnToDecimalDegree()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in decimal degree.
See also
TurnToDegree() for alias.
TurnToArcdegree() for alias.
DegreeToDecimalDegree() for conversion from (decimal) degrees.
DecimalDegreeToDecimalDegree() for conversion from decimal degrees.
RadianToDecimalDegree() for conversion from radians.
IntegerDegreeToDecimalDegree() for conversion from integer degrees.
BinaryDegreeToDecimalDegree() for conversion from binary degrees.
TurnToDecimalDegree() for conversion from turns.
GradianToDecimalDegree() for conversion from gradians.
HoursMinutesSecondsToDecimalDegree() for conversion from hours minutes seconds.
DegreesMinutesSecondsToDecimalDegree() for conversion from degrees minutes seconds.
CompassWindToDecimalDegree() for conversion from compass wind.

◆ TurnToDegree()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in (decimal) degree.
See also
TurnToArcdegree() for alias.
TurnToDegree() for alias.
DegreeToDegree() for conversion from (decimal) degrees.
DecimalDegreeToDegree() for conversion from decimal degrees.
RadianToDegree() for conversion from radians.
IntegerDegreeToDegree() for conversion from integer degrees.
BinaryDegreeToDegree() for conversion from binary degrees.
TurnToDegree() for conversion from turns.
GradianToDegree() for conversion from gradians.
HoursMinutesSecondsToDegree() for conversion from hours minutes seconds.
DegreesMinutesSecondsToDegree() for conversion from degrees minutes seconds.
CompassWindToDegree() for conversion from compass wind.

◆ TurnToDegreesMinutesSeconds()

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.

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

Parameters
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.
See also
TurnToDMS() for alias.
DegreeToDegreesMinutesSeconds() for conversion from (decimal) degrees and full explination.
DecimalDegreeToDegreesMinutesSeconds() for conversion from decimal degrees.
RadianToDegreesMinutesSeconds() for conversion from radians.
IntegerDegreeToDegreesMinutesSeconds() for conversion from integer degrees.
BinaryDegreeToDegreesMinutesSeconds() for conversion from binary degrees.
TurnToDegreesMinutesSeconds() for conversion from turns.
GradianToDegreesMinutesSeconds() for conversion from gradians.
HoursMinutesSecondsToDegreesMinutesSeconds() for conversion from hours minutes seconds.
DegreesMinutesSecondsToDegreesMinutesSecondsS() for conversion from degrees minutes seconds.
CompassWindToDegreesMinutesSeconds() for conversion from compass wind.

◆ TurnToDMS()

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.

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

Parameters
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.
See also
TurnToDegreesMinutesSeconds() for alias.
DegreeToDMS() for conversion from (decimal) degrees and full explination.
DecimalDegreeToDMS() for conversion from decimal degrees.
RadianToDMS() for conversion from radians.
IntegerDegreeToDMS() for conversion from integer degrees.
BinaryDegreeToDMS() for conversion from binary degrees.
TurnToDMS() for conversion from turns.
GradianToDMS() for conversion from gradians.
HoursMinutesSecondsToDMS() for conversion from hours minutes seconds.
DegreesMinutesSecondsToDMS() for conversion from degrees minutes seconds.
CompassWindToDMS() for conversion from compass wind.

◆ TurnToGon()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{g}\ (g)\) is the angle in gradians.
See also
TurnToGradian() for alias.
DegreeToGon() for conversion from (decimal) degrees.
DecimalDegreeToGon() for conversion from decimal degrees.
RadianToGon() for conversion from radians.
IntegerDegreeToGon() for conversion from integer degrees.
BinaryDegreeToGon() for conversion from binary degrees.
TurnToGon() for conversion from turns.
GradianToGon() for conversion from gradians.
HoursMinutesSecondsToGon() for conversion from hours minutes seconds.
DegreesMinutesSecondsToGon() for conversion from degrees minutes seconds.
CompassWindToGon() for conversion from compass wind.

◆ TurnToGradian()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{g}\ (g)\) is the angle in gradians.
See also
TurnToGon() for alias.
DegreeToGradian() for conversion from (decimal) degrees.
DecimalDegreeToGradian() for conversion from decimal degrees.
RadianToGradian() for conversion from radians.
IntegerDegreeToGradian() for conversion from integer degrees.
BinaryDegreeToGradian() for conversion from binary degrees.
TurnToGradian() for conversion from turns.
GradianToGradian() for conversion from gradians.
HoursMinutesSecondsToGradian() for conversion from hours minutes seconds.
DegreesMinutesSecondsToGradian() for conversion from degrees minutes seconds.
CompassWindToGradian() for conversion from compass wind.

◆ TurnToHMS()

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.

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

Parameters
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.
See also
TurnToHoursMinutesSeconds() for alias.
DegreeToHMS() for conversion from (decimal) degrees and full explination.
DecimalDegreeToHMS() for conversion from decimal degrees.
RadianToHMS() for conversion from radians.
IntegerDegreeToHMS() for conversion from integer degrees.
BinaryDegreeToHMS() for conversion from binary degrees.
TurnToHMS() for conversion from turns.
GradianToHMS() for conversion from gradians.
HoursMinutesSecondsToHMS() for conversion from hours minutes seconds.
DegreesMinutesSecondsToHMS() for conversion from degrees minutes seconds.
CompassWindToHMS() for conversion from compass wind.

◆ TurnToHoursMinutesSeconds()

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.

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

Parameters
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.
See also
TurnToHMS() for alias.
DegreeToHoursMinutesSeconds() for conversion from (decimal) degrees and full explination.
DecimalDegreeToHoursMinutesSeconds() for conversion from decimal degrees.
RadianToHoursMinutesSeconds() for conversion from radians.
IntegerDegreeToHoursMinutesSeconds() for conversion from integer degrees.
BinaryDegreeToHoursMinutesSeconds() for conversion from binary degrees.
TurnToHoursMinutesSeconds() for conversion from turns.
GradianToHoursMinutesSeconds() for conversion from gradians.
HoursMinutesSecondsToHoursMinutesSeconds() for conversion from hours minutes seconds.
DegreesMinutesSecondsToHoursMinutesSeconds() for conversion from degrees minutes seconds.
CompassWindToHoursMinutesSeconds() for conversion from compass wind.

◆ TurnToIntegerDegree()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{deg\ int}\ (deg)\) is the angle in integer degrees.
See also
DegreeToIntegerDegree() for conversion from (decimal) degrees.
DecimalDegreeToIntegerDegree() for conversion from decimal degrees.
RadianToIntegerDegree() for conversion from radians.
IntegerDegreeToIntegerDegree() for conversion from integer degrees.
BinaryDegreeToIntegerDegree() for conversion from binary degrees.
TurnToIntegerDegree() for conversion from turns.
GradianToIntegerDegree() for conversion from gradians.
HoursMinutesSecondsToIntegerDegree() for conversion from hours minutes seconds.
DegreesMinutesSecondsToIntegerDegree() for conversion from degrees minutes seconds.
CompassWindToIntegerDegree() for conversion from compass wind.

◆ TurnToMicroarcsecond()

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

.

See https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{\mu as}\ (\mu as)\) is the angle in microarcseconds.
See also
DegreeToMicroarcsecond() for conversion from (decimal) degrees.
DecimalDegreeToMicroarcsecond() for conversion from decimal degrees.
RadianToMicroarcsecond() for conversion from radians.
IntegerDegreeToMicroarcsecond() for conversion from integer degrees.
BinaryDegreeToMicroarcsecond() for conversion from binary degrees.
TurnToMicroarcsecond() for conversion from turns.
GradianToMicroarcsecond() for conversion from gradians.
HoursMinutesSecondsToMicroarcsecond() for conversion from hours minutes seconds.
DegreesMinutesSecondsToMicroarcsecond() for conversion from degrees minutes seconds.
CompassWindToMicroarcsecond() for conversion from compass wind.

◆ TurnToMilliarcsecond()

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

.

See https://en.wikipedia.org/wiki/Minute_and_second_of_arc

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{mas}\ (mas)\) is the angle in milliarcseconds.
See also
DegreeToMilliarcsecond() for conversion from (decimal) degrees.
DecimalDegreeToMilliarcsecond() for conversion from decimal degrees.
RadianToMilliarcsecond() for conversion from radians.
IntegerDegreeToMilliarcsecond() for conversion from integer degrees.
BinaryDegreeToMilliarcsecond() for conversion from binary degrees.
TurnToMilliarcsecond() for conversion from turns.
GradianToMilliarcsecond() for conversion from gradians.
HoursMinutesSecondsToMilliarcsecond() for conversion from hours minutes seconds.
DegreesMinutesSecondsToMilliarcsecond() for conversion from degrees minutes seconds.
CompassWindToMilliarcsecond() for conversion from compass wind.

◆ TurnToMilliradian()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{mrad}\ (mrad)\) is the angle in milliradians.
See also
TurnToRadian() for conversion to radians.
DegreeToMilliradian() for conversion from (decimal) degrees.
DecimalDegreeToMilliradian() for conversion from decimal degrees.
RadianToMilliradian() for conversion from radians.
IntegerDegreeToMilliradian() for conversion from integer degrees.
BinaryDegreeToMilliradian() for conversion from binary degrees.
TurnToMilliradian() for conversion from turns.
GradianToMilliradian() for conversion from gradians.
HoursMinutesSecondsToMilliradian() for conversion from hours minutes seconds.
DegreesMinutesSecondsToMilliradian() for conversion from degrees minutes seconds.
CompassWindToMilliradian() for conversion from compass wind.

◆ TurnToRadian()

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

Parameters
turn\(\alpha_{turn}\ (turn)\) is the angle in turns.
Returns
\(\alpha_{rad}\ (rad)\) is the angle in radians.
See also
TurnToMilliradian() for conversion to milliradians.
DegreeToRadian() for conversion from (decimal) degrees.
DecimalDegreeToRadian() for conversion from decimal degrees.
RadianToRadian() for conversion from radians.
IntegerDegreeToRadian() for conversion from integer degrees.
BinaryDegreeToRadian() for conversion from binary degrees.
TurnToRadian() for conversion from turns.
GradianToRadian() for conversion from gradians.
HoursMinutesSecondsToRadian() for conversion from hours minutes seconds.
DegreesMinutesSecondsToRadian() for conversion from degrees minutes seconds.
CompassWindToRadian() for conversion from compass wind.