Reference · Bodies as objects for your own three.js scene
MoonSitetype
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 it
import type { MoonSite } from "@johnmorrisdotca/wakusei-planets/painter";
Definition
interface MoonSite {
name: string;
offset: Vec3;
radius: number;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | The moon's name as |
offset | Vec3 | |
radius | number |
Examples
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));