FlightFrame型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Everything the picture needs at one place on the timeline: the phase, how each part stands, which engines burn, how far the ground has fallen, and how much smoke stands on the pad.
インポート
import type { FlightFrame } from "@johnmorrisdotca/uchusen-rockets";
定義
interface FlightFrame {
index: number;
phase: FlightPhase;
poses: Readonly<Record<string, PoseNow>>;
burns: Readonly<Record<string, number>>;
groundY: number;
smoke: number;
air: number;
separated: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
index | number | |
phase | FlightPhase | |
poses | Readonly<Record<string, PoseNow>> | |
burns | Readonly<Record<string, number>> | |
groundY | number | Metres. |
smoke | number | |
air | number | |
separated | boolean | A part stands away from the stack. |
例
import { flightOf, frameAt, type FlightFrame } from "@johnmorrisdotca/uchusen-rockets";
const flight = flightOf("falcon-9", "block-5");
const frame: FlightFrame | undefined = flight ? frameAt(flight, 0, [{ slot: "first-stage", baseY: 0 }], 70) : undefined;
console.log(frame?.phase.name, frame?.separated);Ignition false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。