リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
Stop型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A place a trip can start or end at: the Earth, the Moon or a planet, with what the arithmetic needs.
インポート
import type { Stop } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
interface Stop {
id: string;
name: {
en: string;
ja: string;
};
kind: "star" | "planet" | "dwarf-planet" | "moon" | "beyond";
parent?: string;
radiusKm: number;
muKm3s2?: number;
periodDays?: number;
colour: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
name | { en: string; ja: string; } | |
kind | "star" | "planet" | "dwarf-planet" | "moon" | "beyond" | |
parent (省略可) | string | undefined | The planet a moon goes round. |
radiusKm | number | The equatorial radius, km. |
muKm3s2 (省略可) | number | undefined | The gravitational parameter, km^3/s^2. Left out, the journey's own table ( |
periodDays (省略可) | number | undefined | The sidereal orbital period, days. Left out, the journey's own table ( |
colour | string | The body's mean colour, |
例
import type { Stop } from "@johnmorrisdotca/uchusen-rockets/journey";
const mars: Stop = { id: "mars", name: { en: "Mars", ja: "火星" }, kind: "planet", radiusKm: 3396.19, colour: "#c76a3f" };
console.log(mars.name.en);Mars出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。