リファレンス · 自分の three.js シーンに置く天体
MoonSite型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One moon of a planet at a time: where it is from the planet's centre and how big it is, both in radii of the planet, in the scene's axes.
インポート
import type { MoonSite } from "@johnmorrisdotca/wakusei-planets/painter";
定義
interface MoonSite {
name: string;
offset: Vec3;
radius: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | The moon's name as |
offset | Vec3 | |
radius | number |
例
import { painter } from "@johnmorrisdotca/wakusei-planets/painter";
const io = painter.moons("Jupiter", Date.UTC(2026, 10, 2))[0];
console.log(io?.name, io?.radius.toFixed(3));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。