Reference · Constellation boundaries and which constellation a point is in
boundariesfunction
The boundaries of all 88 constellations, alphabetical by Latin name like constellations(). Together the outlines tile the sky: each edge is shared by two constellations, and both
give the same points along it (to the arc-second the points are the same place).
Import it
import { boundaries } from "@johnmorrisdotca/hoshi-stars/boundaries";
Definition
function boundaries(options?: { step?: number; }): Boundary[]
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | { step?: number; } |
|
Returns
Boundary[]
New boundaries.
Examples
import { boundaries } from "@johnmorrisdotca/hoshi-stars/boundaries";
const all = boundaries();
console.log(all.length, all.reduce((n, b) => n + b.outlines.reduce((m, o) => m + o.length, 0), 0), "points");88 9726 pointsWhat it prints (run when this page was built)