Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · The 5,080 stars you can see without a telescope: names, positions, proper motion, distance and colour (about 100 kB gzipped)

starDistanceLightYearsfunction

A star's distance from its parallax, in light-years.

Import it

import { starDistanceLightYears } from "@johnmorrisdotca/wakusei-planets/stars";

Definition

function starDistanceLightYears(star: Star): number | undefined

Parameters

NameTypeDescription
starStar

A star.

Returns

number | undefined

Light-years, or undefined where the catalogue has no parallax (or a non-positive one).

Examples

import { starByName, starDistanceLightYears } from "@johnmorrisdotca/wakusei-planets/stars";

console.log(starDistanceLightYears(starByName("Sirius")!)?.toFixed(1));
8.7

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.