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 · What is near a star, an object or a point, in the sky and in space; neighbouring constellations

NearestInSkytype

One answer of a query by angle: the thing and its angle from the target, in degrees.

Import it

import type { NearestInSky } from "@johnmorrisdotca/hoshi-stars/nearest";

Definition

interface NearestInSky<T extends NearestThing = Star> {
    thing: T;
    angle: number;
}

Members

NameTypeDescription
thingT

The star or deep-sky object.

anglenumber

The angle on the sky from the target, in degrees, 0 to 180.

Examples

import { nearest, type NearestInSky } from "@johnmorrisdotca/hoshi-stars/nearest";

const first: NearestInSky = nearest("Mizar", { count: 1 })[0]!;
console.log(first.thing.name, first.angle.toFixed(2));
undefined 0.00

What it prints (run when this page was built)

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