Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 956 Bytes

ecliptic-longitude.md

File metadata and controls

20 lines (12 loc) · 956 Bytes

//astronomy/io.github.cosinekitty.astronomy/eclipticLongitude

eclipticLongitude

fun eclipticLongitude(body: Body, time: Time): Double

Calculates heliocentric ecliptic longitude of a body.

This function calculates the angle around the plane of the Earth's orbit of a celestial body, as seen from the center of the Sun. The angle is measured prograde (in the direction of the Earth's orbit around the Sun) in degrees from the true equinox of date. The ecliptic longitude is always in the range [0, 360).

Return

The ecliptic longitude in degrees of the given body at the given time.

Parameters

body A body other than the Sun.
time The date and time at which the body's ecliptic longitude is to be calculated.