リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
preheat関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The engine preheat bar before ignition: ten segments and a percent. It fills from 13 seconds before lift-off to 3 seconds before, and is full after.
インポート
import { preheat } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
function preheat(missionS: number): { percent: number; full: number; partial: number; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
missionS | number | Mission seconds from lift-off (negative before). |
戻り値
{ percent: number; full: number; partial: number; }
The percent (0 to 100), how many of the ten segments are full, and how full the next one is (0 to 1).
例
import { preheat } from "@johnmorrisdotca/uchusen-rockets/journey";
console.log(preheat(-8.5));{ percent: 45, full: 4, partial: 0.5 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。