Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1 KB

constellation.md

File metadata and controls

20 lines (12 loc) · 1 KB

//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).