Kotlin: Another batch of functions ported.

Converting between radians and degrees.
Clamping angles to a desired range of degrees.
Converting between vector, spherical, horizontal.
Refraction and inverse refraction.
This commit is contained in:
Don Cross
2022-03-23 17:21:37 -04:00
parent 94aba0240a
commit 40e0fb7b4f
22 changed files with 480 additions and 30 deletions

View File

@@ -1618,7 +1618,7 @@ the rings appear edge-on, and are thus nearly invisible from the Earth. The `rin
**Calculates the inverse of an atmospheric refraction angle.**
Given an observed altitude angle that includes atmospheric refraction,
calculate the negative angular correction to obtain the unrefracted
calculates the negative angular correction to obtain the unrefracted
altitude. This is useful for cases where observed horizontal
coordinates are to be converted to another orientation system,
but refraction first must be removed from the observed position.

View File

@@ -5061,7 +5061,7 @@ def InverseRefractionAngle(refraction, bent_altitude):
"""Calculates the inverse of an atmospheric refraction angle.
Given an observed altitude angle that includes atmospheric refraction,
calculate the negative angular correction to obtain the unrefracted
calculates the negative angular correction to obtain the unrefracted
altitude. This is useful for cases where observed horizontal
coordinates are to be converted to another orientation system,
but refraction first must be removed from the observed position.