neighbouringConstellationsfunction
The constellations that share a piece of boundary with one constellation, in alphabetical order of their Latin names. Two constellations that meet only at a corner are not neighbours. The table is worked out from the IAU boundaries the first time it is needed (a few milliseconds) and kept.
Import it
import { neighbouringConstellations } from "@johnmorrisdotca/hoshi-stars/nearest";
Definition
function neighbouringConstellations(text: string): Constellation[]
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The constellation, as the IAU abbreviation ( |
Returns
Constellation[]
A new list of the shared, frozen constellations.
Examples
import { neighbouringConstellations } from "@johnmorrisdotca/hoshi-stars/nearest";
console.log(neighbouringConstellations("Ori").map((c) => c.abbreviation)); // ["Eri", "Gem", "Lep", "Mon", "Tau"][ 'Eri', 'Gem', 'Lep', 'Mon', 'Tau' ]What it prints (run when this page was built)