stopPlaceAu関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where a body is in the Sun's frame at an instant, in astronomical units. The Sun is the origin. A moon is its parent plus its offset.
インポート
import { stopPlaceAu } from "@johnmorrisdotca/wakusei-planets";
定義
function stopPlaceAu(id: BodyId, ms: number): Vec3
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | BodyId | The body's name. |
ms | number | The instant, in milliseconds since 1970. |
戻り値
Vec3
The position as x, y, z in au.
例
import { stopPlaceAu } from "@johnmorrisdotca/wakusei-planets";
const [x, y, z] = stopPlaceAu("mars", Date.UTC(2026, 10, 2));
console.log(Math.hypot(x, y, z).toFixed(3));1.595出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。