moonGeocentric関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Moon's position from the Earth's centre (J2000 mean ecliptic and equinox, kilometres), from the lunar solution ELP2000-82B (Chapront-Touze and Chapront, IMCCE) cut to its 540 largest terms and run in terrestrial time: within a few arc-seconds of Horizons from 1800 to 2200.
インポート
import { moonGeocentric } from "@johnmorrisdotca/wakusei-planets";
定義
function moonGeocentric(ms: number): Vec3
引数
| 名前 | 型 | 説明 |
|---|---|---|
ms | number | The instant, in milliseconds since 1970 (UTC). |
戻り値
Vec3
The position as x, y, z in kilometres.
例
import { moonGeocentric } from "@johnmorrisdotca/wakusei-planets";
const [x, y, z] = moonGeocentric(Date.UTC(2026, 10, 2));
console.log(Math.round(Math.hypot(x, y, z)) > 350000);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。