FlightPhase型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One phase of a flight: its id and name, what happens, when (a figure with its source), how many engines burn, how each part stands, and how far the ground has fallen away. The poses and the smoke are a picture, not a measurement.
インポート
import type { FlightPhase } from "@johnmorrisdotca/uchusen-rockets";
定義
interface FlightPhase {
id: string;
name: string;
what: string;
at: Figure;
burns: Readonly<Record<string, FlightBurn>>;
pose: Readonly<Record<string, PartPose>>;
ground: number;
smoke?: number;
air?: number;
altitude?: Figure<string>;
speed?: Figure<string>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
name | string | |
what | string | What happens, in a line. |
at | Figure<number> | Seconds from the flight's zero, on the page's own clock. |
burns | Readonly<Record<string, FlightBurn>> | |
pose | Readonly<Record<string, PartPose>> | |
ground | number | How far the ground has fallen from under the rocket, in heights of the whole vehicle. A picture. |
smoke (省略可) | number | undefined | How much smoke and water stands on the pad, 0 to 1. A picture. |
air (省略可) | number | undefined | 0 near the ground, 1 high up, where a flame fans out. A picture. |
altitude (省略可) | Figure<string> | undefined | |
speed (省略可) | Figure<string> | undefined |
例
import { FLIGHTS, type FlightPhase } from "@johnmorrisdotca/uchusen-rockets";
const phase: FlightPhase | undefined = FLIGHTS[0]?.phases[0];
console.log(phase?.name, phase?.what);Ignition The booster's engines start while it is held on the pad, with the flame deflector running.出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。