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 bodies nearest to a body on a date, in the sky or in space, and when two bodies come closest: nearest, within, closestApproach and conjunctions

ApproachOptionstype

Where a search looks, and what counts as close.

Import it

import type { ApproachOptions } from "@johnmorrisdotca/wakusei-planets/nearest";

Definition

interface ApproachOptions {
    from: When;
    to: When;
    by?: "sky" | "space";
    observer?: Viewpoint;
}

Members

NameTypeDescription
fromWhen

The start of the span, a Date or milliseconds since 1970 (UTC).

toWhen

The end of the span.

by (optional)"sky" | "space" | undefined

"sky" (default) or "space", as in nearest.

observer (optional)Viewpoint | undefined

Where the sky is seen from; ignored by by: "space". Default: the Earth's centre.

Examples

import { closestApproach, type ApproachOptions } from "@johnmorrisdotca/wakusei-planets/nearest";

const options: ApproachOptions = { from: Date.UTC(2023, 1, 20), to: Date.UTC(2023, 2, 10) };
console.log(closestApproach("venus", "jupiter", options).time.toISOString());
2023-03-02T05:05:40.522Z

What it prints (run when this page was built)

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