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 · Map projections for sky charts

MapPointtype

A point on the chart. x runs to the right and y UP (north above the centre), in the units of scale; flip y when you draw on a screen.

Import it

import type { MapPoint } from "@johnmorrisdotca/hoshi-stars/projection";

Definition

interface MapPoint {
    x: number;
    y: number;
}

Members

NameTypeDescription
xnumber

Across the chart, to the right. East is to the left unless mirror is set.

ynumber

Up the chart.

Examples

import type { MapPoint } from "@johnmorrisdotca/hoshi-stars/projection";

const middle: MapPoint = { x: 0, y: 0 };
console.log(middle.x + middle.y);
0

What it prints (run when this page was built)

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