リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
stageOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What of a craft is left at a phase of its trip, to draw: the whole rocket until the ascent is over, the upper stage with its payload for the departure burn and the coast, and the payload alone from the turn round. A ship that burns all the way is whole throughout.
インポート
import { stageOf } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
function stageOf(craft: Craft, phase: string, onPad?: boolean): Stage
引数
| 名前 | 型 | 説明 |
|---|---|---|
craft | Craft | A craft. |
phase | string | The phase of the trip, such as |
onPad (省略可) | boolean | Whether the craft lifts off. A craft that is already in orbit (a departure from the Moon) is the payload throughout. |
戻り値
Stage
The rocket, variant and slots to draw, and a name for them.
例
import { craftOf, stageOf } from "@johnmorrisdotca/uchusen-rockets/journey";
const saturn = craftOf("saturn-v")!;
console.log(stageOf(saturn, "ascent").name, stageOf(saturn, "coast").name, stageOf(saturn, "brake").name);Saturn V S-IVB with the Apollo spacecraft Apollo command and service module出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。