リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
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[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
source | BodySource | Where the planets are. |
from | string | The starting planet's id. |
to | string | The destination planet's id. |
afterMs | number | The earliest date, milliseconds since 1970. |
count | number | 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)));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。