EGXPhys

Functions

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

\[\alpha_{rad}=\alpha_{g}\frac{\pi}{200}\]

. More...

 
template<typename T >
EGXMath::GonToMilliradian (const T &gradian)
 Converts an angle in gradian to milliradian.

\[\alpha_{mrad}=\alpha_{g}\frac{\pi}{200}*10^3\]

. More...

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

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

. More...

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

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

. More...

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

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

. More...

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

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

. More...

 
template<typename T >
EGXMath::GonToIntegerDegree (const T &gradian)
 Converts an angle in gradian to integer degree.

\[\alpha_{deg\ int}=round(\alpha_{g}\frac{9}{10})\]

. More...

 
template<typename T , typename T2 >
EGXMath::GonToBinaryDegree (const T &gradian, const T2 &bits=8)
 Converts an angle in gradian to binary degree (brad).

\[\alpha_{deg\ bin}=round(\alpha_{g}\frac{2^{(n-1)}}{400})\]

Where \(n\) is the number of bits gliable to store the number. \(n\) defaults to 8, the tradiational number for binary degrees. More...

 
template<typename T >
EGXMath::GonToArcminute (const T &gradian)
 Converts an angle in gradian to arcminute. Note that arcminutes are not equal to minutes.

\[\alpha_{arcmin}=\alpha_{g}\frac{9}{10} * 60\]

. More...

 
template<typename T >
EGXMath::GonToArcsecond (const T &gradian)
 Converts an angle in gradian to arcsecond. Note that arcsecond are not equal to seconds.

\[\alpha_{arcsec}=\alpha_{g}\frac{9}{10} * 60 * 60\]

. More...

 
template<typename T >
EGXMath::GonToMilliarcsecond (const T &gradian)
 Converts an angle in gradian to milliarcsecond.

\[\alpha_{mas}=\alpha_{g}\frac{9}{10} * 60 * 60 * 10^3\]

. More...

 
template<typename T >
EGXMath::GonToMicroarcsecond (const T &gradian)
 Converts an angle in gradian to microarcsecond.

\[\alpha_{\mu as}=\alpha_{g}\frac{9}{10} * 60 * 60 * 10^6\]

. More...

 
template<typename T >
void EGXMath::GonToDegreesMinutesSeconds (const T &gradian, T &integerDegree, T &arcminute, T &arcsecond)
 Converts an angle in gradian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More...
 
template<typename T >
void EGXMath::GonToDMS (const T &gradian, T &integerDegree, T &arcminute, T &arcsecond)
 Converts an angle in gradian to degrees minutes seconds (DMS). \({DD}^{\circ}{MM}'{SS.SS}''\) format. More...
 
template<typename T >
void EGXMath::GonToHoursMinutesSeconds (const T &gradian, T &hour, T &minute, T &second)
 Converts an angle in gradian to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More...
 
template<typename T >
void EGXMath::GonToHMS (const T &gradian, T &hour, T &minute, T &second)
 Converts an angle in gradian to hours minutes seconds (HMS). \({HH}^h{MM}^m{SS.SS}^s\) format. More...
 
template<typename T >
EGXMath::GonToGradian (const T &gradian)
 Converts an angle in gradian to gradian.

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

. More...

 
template<typename T >
std::string EGXMath::GonToCompassWind (const T &gradian, const unsigned int winds, const bool abbreviate)
 Converts an angle in gradian to a n-Wind compass point name. More...
 

Detailed Description

Function Documentation

◆ GonToArcdegree()

template<typename T >
T EGXMath::GonToArcdegree ( const T &  gradian)

Converts an angle in gradian to arcdegree (decimal degree).

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

.

See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in arcdegree (decimal degree).
See also
GonToDegree() for alias.
GonToDecimalDegree() 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.

◆ GonToArcminute()

template<typename T >
T EGXMath::GonToArcminute ( const T &  gradian)

Converts an angle in gradian to arcminute. Note that arcminutes are not equal to minutes.

\[\alpha_{arcmin}=\alpha_{g}\frac{9}{10} * 60\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToArcsecond()

template<typename T >
T EGXMath::GonToArcsecond ( const T &  gradian)

Converts an angle in gradian to arcsecond. Note that arcsecond are not equal to seconds.

\[\alpha_{arcsec}=\alpha_{g}\frac{9}{10} * 60 * 60\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToBinaryDegree()

template<typename T , typename T2 >
T EGXMath::GonToBinaryDegree ( const T &  gradian,
const T2 &  bits = 8 
)

Converts an angle in gradian to binary degree (brad).

\[\alpha_{deg\ bin}=round(\alpha_{g}\frac{2^{(n-1)}}{400})\]

Where \(n\) is the number of bits gliable 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
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
bits\(n\ (bit)\) is the number of bits gliable 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.

◆ GonToCompassWind()

template<typename T >
std::string EGXMath::GonToCompassWind ( const T &  gradian,
const unsigned int  winds,
const bool  abbreviate 
)

Converts an angle in gradian to a n-Wind compass point name.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToDecimalDegree()

template<typename T >
T EGXMath::GonToDecimalDegree ( const T &  gradian)

Converts an angle in gradian to decimal degree.

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

.

See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in decimal degree.
See also
GonToDegree() for alias.
GonToArcdegree() 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.

◆ GonToDegree()

template<typename T >
T EGXMath::GonToDegree ( const T &  gradian)

Converts an angle in gradian to (decimal) degree.

\[\alpha_{deg}=\alpha_{g}\frac{9}{10}\]

.

See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{deg}\ (deg)\) is the angle in (decimal) degree.
See also
GonToArcdegree() for alias.
GonToDegree() 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.

◆ GonToDegreesMinutesSeconds()

template<typename T >
void EGXMath::GonToDegreesMinutesSeconds ( const T &  gradian,
T &  integerDegree,
T &  arcminute,
T &  arcsecond 
)

Converts an angle in gradian 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
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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
GonToDMS() 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.

◆ GonToDMS()

template<typename T >
void EGXMath::GonToDMS ( const T &  gradian,
T &  integerDegree,
T &  arcminute,
T &  arcsecond 
)

Converts an angle in gradian 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
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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
GonToDegreesMinutesSeconds() 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.

◆ GonToGradian()

template<typename T >
T EGXMath::GonToGradian ( const T &  gradian)

Converts an angle in gradian to gradian.

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

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{g}\ (g)\) is the angle in gradians.
See also
GonToGon() 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.

◆ GonToHMS()

template<typename T >
void EGXMath::GonToHMS ( const T &  gradian,
T &  hour,
T &  minute,
T &  second 
)

Converts an angle in gradian 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
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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
GonToHoursMinutesSeconds() 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.

◆ GonToHoursMinutesSeconds()

template<typename T >
void EGXMath::GonToHoursMinutesSeconds ( const T &  gradian,
T &  hour,
T &  minute,
T &  second 
)

Converts an angle in gradian 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
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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
GonToHMS() 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.

◆ GonToIntegerDegree()

template<typename T >
T EGXMath::GonToIntegerDegree ( const T &  gradian)

Converts an angle in gradian to integer degree.

\[\alpha_{deg\ int}=round(\alpha_{g}\frac{9}{10})\]

.

See https://en.wikipedia.org/wiki/Degree_(angle) and https://en.wikipedia.org/wiki/Decimal_degrees

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToMicroarcsecond()

template<typename T >
T EGXMath::GonToMicroarcsecond ( const T &  gradian)

Converts an angle in gradian to microarcsecond.

\[\alpha_{\mu as}=\alpha_{g}\frac{9}{10} * 60 * 60 * 10^6\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToMilliarcsecond()

template<typename T >
T EGXMath::GonToMilliarcsecond ( const T &  gradian)

Converts an angle in gradian to milliarcsecond.

\[\alpha_{mas}=\alpha_{g}\frac{9}{10} * 60 * 60 * 10^3\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
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.

◆ GonToMilliradian()

template<typename T >
T EGXMath::GonToMilliradian ( const T &  gradian)

Converts an angle in gradian to milliradian.

\[\alpha_{mrad}=\alpha_{g}\frac{\pi}{200}*10^3\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{mrad}\ (mrad)\) is the angle in milliradians.
See also
GonToRadian() 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.

◆ GonToRadian()

template<typename T >
T EGXMath::GonToRadian ( const T &  gradian)

Converts an angle in gradian to radian.

\[\alpha_{rad}=\alpha_{g}\frac{\pi}{200}\]

.

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

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{rad}\ (rad)\) is the angle in radians.
See also
GonToMilliradian() 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.

◆ GonToTurn()

template<typename T >
T EGXMath::GonToTurn ( const T &  gradian)

Converts an angle in gradian to turn.

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

.

See https://en.wikipedia.org/wiki/Turn_(geometry)

Parameters
gradian\(\alpha_{g}\ (gon)\) is the angle in gradians.
Returns
\(\alpha_{turn}\ (turn)\) is the angle in turns.
See also
DegreeToTurn() for conversion from (decimal) degrees.
DecimalDegreeToTurn() for conversion from decimal degrees.
RadianToTurn() for conversion from radians.
IntegerDegreeToTurn() for conversion from integer degrees.
BinaryDegreeToTurn() for conversion from binary degrees.
TurnToTurn() for conversion from turns.
GradianToTurn() for conversion from gradians.
HoursMinutesSecondsToTurn() for conversion from hours minutes seconds.
DegreesMinutesSecondsToTurn() for conversion from degrees minutes seconds.
CompassWindToTurn() for conversion from compass wind.