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 · A constellation in 3D: its stars placed in space from their parallaxes, with the range each error allows and the Earth's lines of sight

Viewpoint3Dtype

A viewpoint: a star (with a distance), a name starByName finds, or a point { x, y, z } in parsecs with the Sun at the origin.

Import it

import type { Viewpoint3D } from "@johnmorrisdotca/hoshi-stars/constellation-3d";

Definition

type Viewpoint3D = Star | NearbyStar | string | {
    x: number;
    y: number;
    z: number;
};

Examples

import { constellationIn3D, type Viewpoint3D } from "@johnmorrisdotca/hoshi-stars/constellation-3d";

const from: Viewpoint3D = "Rigil Kentaurus";
console.log(constellationIn3D("Cas", { from }).viewpoint.name);
Rigil Kentaurus

What it prints (run when this page was built)

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