Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Journey mode: transfers, launch windows and flip-and-burn trips

bestDatefunction

The departure date, for a craft that burns all the way, with the shortest trip in the next two years.

Import it

import { bestDate } from "@johnmorrisdotca/uchusen-rockets/journey";

Definition

function bestDate(source: BodySource, craft: Craft, from: string, to: string, afterMs: number, g?: number): number

Parameters

NameTypeDescription
sourceBodySource

Where the places are.

craftCraft

The craft.

fromstring

The starting place's id.

tostring

The destination's id.

afterMsnumber

The earliest date.

g (optional)number | undefined

Proper acceleration in g. Omitted, the ship flies at its rated acceleration. Passed on to planTrip.

Returns

number

The date, milliseconds since 1970.

Examples

import { bestDate, craftOf, type BodySource } from "@johnmorrisdotca/uchusen-rockets/journey";

declare const source: BodySource;
console.log(new Date(bestDate(source, craftOf("kaminari")!, "earth", "mars", Date.UTC(2026, 10, 4))).toISOString());

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.