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

windowsfunction

The next dates a craft can leave one planet for another on a Hohmann transfer: the days on which the destination will be where the craft arrives. Found by scanning day by day and bisecting each crossing, from the planets' real positions.

Import it

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

Definition

function windows(source: BodySource, from: string, to: string, afterMs: number, count: number): Window[]

Parameters

NameTypeDescription
sourceBodySource

Where the planets are.

fromstring

The starting planet's id.

tostring

The destination planet's id.

afterMsnumber

The earliest date, milliseconds since 1970.

countnumber

How many windows.

Returns

Window[]

The windows, soonest first.

Examples

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

declare const source: BodySource;
console.log(windows(source, "earth", "mars", Date.UTC(2026, 10, 4), 2).map((one) => new Date(one.dateMs).toISOString().slice(0, 10)));

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