Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.35 KB

rotation-axis.md

File metadata and controls

26 lines (15 loc) · 1.35 KB

//astronomy/io.github.cosinekitty.astronomy/rotationAxis

rotationAxis

fun rotationAxis(body: Body, time: Time): AxisInfo

Calculates information about a body's rotation axis at a given time.

Calculates the orientation of a body's rotation axis, along with the rotation angle of its prime meridian, at a given moment in time.

This function uses formulas standardized by the IAU Working Group on Cartographics and Rotational Elements 2015 report, as described in the following document:

https://astropedia.astrogeology.usgs.gov/download/Docs/WGCCRE/WGCCRE2015reprint.pdf

See AxisInfo for more detailed information.

Return

North pole orientation and body spin angle.

Parameters

body One of the following values: Body.Sun, Body.Moon, Body.Mercury, Body.Venus, Body.Earth, Body.Mars, Body.Jupiter, Body.Saturn, Body.Uranus, Body.Neptune, Body.Pluto.
time The time at which to calculate the body's rotation axis.