Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 935 Bytes

angle-from-sun.md

File metadata and controls

20 lines (12 loc) · 935 Bytes

//astronomy/io.github.cosinekitty.astronomy/angleFromSun

angleFromSun

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

Returns the angle between the given body and the Sun, as seen from the Earth.

This function calculates the angular separation between the given body and the Sun, as seen from the center of the Earth. This angle is helpful for determining how easy it is to see the body away from the glare of the Sun.

Return

The angle in degrees between the Sun and the specified body as seen from the center of the Earth.

Parameters

body The celestial body whose angle from the Sun is to be measured. Not allowed to be Body.Earth.
time The time at which the observation is made.