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

DistanceAttype

The least or the greatest distance of a pair over a span, and when.

Import it

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

Definition

interface DistanceAt {
    time: Date;
    distanceKm: number;
    distanceAu: number;
    uncertaintyKm: number;
    atEdge: boolean;
}

Members

NameTypeDescription
timeDate

The moment, to about a second of time.

distanceKmnumber
distanceAunumber
uncertaintyKmnumber

The accuracy to expect of distanceKm, kilometres.

atEdgeboolean

True when this is the span's start or end, not a turning point inside it.

Examples

import { distanceRange, type DistanceAt } from "@johnmorrisdotca/wakusei-planets/nearest";

const least: DistanceAt = distanceRange("earth", "mars", { from: Date.UTC(2003, 0, 1), to: Date.UTC(2004, 0, 1) }).min;
console.log(least.time.toISOString().slice(0, 10), least.distanceAu.toFixed(3));
2003-08-27 0.373

What it prints (run when this page was built)

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