Files
astronomy/source/kotlin/doc/bary-state.md
Don Cross 281180db24 Use consistent descriptions of EQJ, ECL.
Use consistent wording for these two orientation systems:
EQJ = J2000 mean equator
ECL = J2000 mean ecliptic
2022-12-08 16:16:41 -05:00

1.3 KiB

//astronomy/io.github.cosinekitty.astronomy/baryState

baryState

fun baryState(body: Body, time: Time): StateVector

Calculates barycentric position and velocity vectors for the given body.

Given a body and a time, calculates the barycentric position and velocity vectors for the center of that body at that time. The vectors are expressed in J2000 mean equator coordinates (EQJ).

Return

The barycentric position and velocity vectors of the body.

Parameters

body The celestial body whose barycentric state vector is to be calculated. Supported values are Body.Sun, Body.Moon, Body.EMB, Body.SSB, and all planets: Body.Mercury, Body.Venus, Body.Earth, Body.Mars, Body.Jupiter, Body.Saturn, Body.Uranus, Body.Neptune, Body.Pluto.
time The date and time for which to calculate position and velocity.