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

positionIn3Dfunction

The place in space of a direction and a distance: right ascension and declination in degrees, distance in light-years, on the J2000 equatorial axes with the viewpoint at the origin.

Import it

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

Definition

function positionIn3D(rightAscension: number, declination: number, lightYears: number): Point3

Parameters

NameTypeDescription
rightAscensionnumber

Degrees.

declinationnumber

Degrees, -90 to 90.

lightYearsnumber

The distance.

Returns

Point3

[x, y, z] in light-years.

Examples

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

console.log(positionIn3D(90, 0, 10)); // about [0, 10, 0]
[ 6.123233995736766e-16, 10, 0 ]

What it prints (run when this page was built)

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