本文へ移動

Uchusen Rockets宇宙船

出典つきの寸法から描いたロケットです。ページに置いて、分解して、回して見られる線画と彩色した3Dビューに加え、ロケットが本当に組み合わさるかを確かめる、型付きのデータモデルを備えています。

Uchusen は、宇宙を飛ぶ乗り物を意味する日本語「宇宙船」(うちゅうせん)から取った名前です。 名前について(英語)

目次

リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅

windows関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 { windows } from "@johnmorrisdotca/uchusen-rockets/journey";

定義

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

引数

名前型説明
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.

戻り値

Window[]

The windows, soonest first.

例

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)));

ソースを見るGitHub で編集@johnmorrisdotca/uchusen-rockets 0.14.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。