リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
ignition関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The ignition count: IGNITION IN 3, 2, 1, then 0 from lift-off, with how far round the ring dial has gone.
インポート
import { ignition } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
function ignition(missionS: number): { count: number; ring: number; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
missionS | number | Mission seconds from lift-off (negative before). |
戻り値
{ count: number; ring: number; }
The number to show (3, 2, 1 or 0) and the ring's sweep (0 to 1).
例
import { ignition } from "@johnmorrisdotca/uchusen-rockets/journey";
console.log(ignition(-2.2), ignition(0));{ count: 3, ring: 0.2666666666666666 } { count: 0, ring: 1 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。