Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

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

NameTypeDescription
options (optional){ step?: number; }

step: the longest piece of an edge, in degrees from 0.01 to 90 (default 1). At 1 degree the whole sky is about 9,000 points.

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 points

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.7.0.