mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-31 19:48:37 -05:00
997 B
997 B
//astronomy/io.github.cosinekitty.astronomy/constellation
constellation
fun constellation(ra: Double, dec: Double): ConstellationInfo
Determines the constellation that contains the given point in the sky.
Given J2000 equatorial (EQJ) coordinates of a point in the sky, determines the constellation that contains that point.
Return
A structure that contains the 3-letter abbreviation and full name of the constellation that contains the given (ra,dec), along with the converted B1875 (ra,dec) for that point.
Parameters
| ra | The right ascension (RA) of a point in the sky, using the J2000 equatorial system (EQJ). |
| dec | The declination (DEC) of a point in the sky, using the J2000 equatorial system (EQJ). |