Reference · The Sun, Moon and planets: pure parts
BodyMoontype
One moon of a planet at a moment: its name, where it is from the planet's centre and how big it is, both in radii of the planet, in scene axes.
Import it
import type { BodyMoon } from "@johnmorrisdotca/chikyu-earth/space";
Definition
interface BodyMoon {
name: string;
offset: Readonly<Vec3>;
radius: number;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
offset | readonly [number, number, number] | |
radius | number |
Examples
import type { BodyMoon } from "@johnmorrisdotca/chikyu-earth/space";
const io: BodyMoon = { name: "Io", offset: [5.9, 0, 0], radius: 0.0255 };
console.log(io.name);