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

Boundarytype

The boundary of one constellation, as lines to draw.

Import it

import type { Boundary } from "@johnmorrisdotca/hoshi-stars/boundaries";

Definition

interface Boundary {
    constellation: Constellation;
    outlines: Array<Array<{
        rightAscension: number;
        declination: number;
    }>>;
}

Members

NameTypeDescription
constellationConstellation

The constellation the boundary encloses.

outlines{ rightAscension: number; declination: number; }[][]

The closed outlines, each a list of points (degrees, J2000) with the first point repeated as the last. Most constellations have one; Serpens has two, its head and its tail.

Examples

import { boundaryOf, type Boundary } from "@johnmorrisdotca/hoshi-stars/boundaries";

const crux: Boundary = boundaryOf("Cru");
console.log(crux.constellation.name, crux.outlines.length, crux.outlines[0]!.length);
Crux 1 35

What it prints (run when this page was built)

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