spinAt関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How far the Earth has turned after ms milliseconds, in degrees.
インポート
import { spinAt } from "@johnmorrisdotca/chikyu-earth";
定義
function spinAt(ms: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
ms | number | A time span in milliseconds. |
戻り値
number
The turn in degrees; a whole SIDEREAL_DAY_MS is 360.
例
import { SIDEREAL_DAY_MS, spinAt } from "@johnmorrisdotca/chikyu-earth";
console.log(spinAt(SIDEREAL_DAY_MS / 4));90出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。