リファレンス · ジャーニーモード:ホーマン遷移・打ち上げ窓・フリップ&バーンの旅
stateAt関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Everything true of the craft at a moment of playback: its place, speed, acceleration, the distances, the clocks and the signal time home.
インポート
import { stateAt } from "@johnmorrisdotca/uchusen-rockets/journey";
定義
function stateAt(trip: Trip, source: BodySource, playbackS: number): State
引数
| 名前 | 型 | 説明 |
|---|---|---|
trip | Trip | A planned trip (one that can be played). |
source | BodySource | Where the places are. |
playbackS | number | Seconds since Play was pressed, at the normal speed. |
戻り値
State
The state.
例
import { stateAt, type BodySource, type Trip } from "@johnmorrisdotca/uchusen-rockets/journey";
declare const trip: Trip;
declare const source: BodySource;
console.log(Math.round(stateAt(trip, source, 30).speedMs));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。