本文へ移動

Uchusen Rockets宇宙船

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

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

目次

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

State型

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

What is true of the craft at a moment: its place, speed, acceleration, the distances, the clocks, the signal time home and how far it has turned round.

インポート

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

定義

interface State extends Place {
    dateMs: number;
    burn: "off" | "forward" | "reverse";
    speedFrame: "start" | "earth" | "sun" | "destination";
    speedMs: number;
    gamma: number;
    accelG: number;
    doneKm: number;
    progress: number;
    toDestinationKm: number;
    positionKm: Vec3;
    shipS: number;
    frameS: number;
    signalS: number;
    turned: number;
}

メンバー

名前型説明
dateMsnumber
burn"off" | "forward" | "reverse"

Which way the engine is firing: not at all, pushing it on, or against its motion.

speedFrame"sun" | "earth" | "start" | "destination"

How the speed is measured: from the start or destination (for a ship that burns all the way), from the Earth, the Sun or the destination.

speedMsnumber
gammanumber
accelGnumber

The acceleration, in g, positive along the motion.

doneKmnumber

Path flown, km, and the fraction of the path, 0 to 1.

progressnumber
toDestinationKmnumber

The straight line from the craft to the destination, km.

positionKmVec3

The craft's place in the trip's frame, km.

shipSnumber

Time on board since lift-off and time since lift-off in the frame of the places, seconds.

frameSnumber
signalSnumber

How long a signal takes to get home from here, seconds.

turnednumber

How far the craft has turned round, 0 (facing forward) to 1 (facing back).

phasePhase
indexnumber
fractionnumber

How far through the phase, 0 to 1.

missionSnumber

Mission seconds from lift-off (negative before).

scalenumber

Mission seconds shown per second on the screen in this phase.

例

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

const speed = (state: State) => `${Math.round(state.speedMs)} m/s`;
console.log(typeof speed);
function

出力(このページを作ったときに実行した結果)

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

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