リファレンス · 日付ごとの太陽・月・惑星の位置を、二つの縮尺で。カメラの計算つき
SpaceFrame型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where everything is at one moment: positions in astronomical units from the Earth's centre, in J2000 equatorial axes with y north.
インポート
import type { SpaceFrame } from "@johnmorrisdotca/wakusei-planets/space";
定義
interface SpaceFrame {
ms: number;
sun: Vec3;
moon: Vec3;
planets: Record<SpacePlanet, Vec3>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
ms | number | |
sun | Vec3 | |
moon | Vec3 | |
planets | Record<"mercury" | "venus" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto", Vec3> |
例
import { frameAt, type SpaceFrame } from "@johnmorrisdotca/wakusei-planets/space";
const frame: SpaceFrame = frameAt(Date.UTC(2026, 10, 2, 12));
console.log(Object.keys(frame.planets).length);8出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。