Documentation / @interstellar-tools/types / MoonInterface
Interface: MoonInterface
Defined in: celestial-bodies/moons.ts:40
Represents a moon (natural satellite) orbiting a planet, a dwarf planet or an asteroid.
A moon always has a parent (its planet, or an asteroid like Dimorphos's Didymos) and an orbit around it; see OrbitInterface.
Physical and drawing properties:
- Size (
radius): Actual moon radius in kilometers (km). - Drawing (
display): colour, and state a renderer computes; see DisplayInterface.
Example
const europa: MoonInterface = {
id: 'europa',
name: 'Europa',
category: 'natural satellite',
parent: 'jupiter',
orbit: {
a: { value: 0.00448, unit: 'au' },
e: 0.009,
period: { value: 3.551, unit: 'd' },
angle: 0 as Radians
},
radius: { value: 1560.8, unit: 'km' },
display: { color: '#a6a6a6' }
};Properties
category
category: 'natural satellite' | 'irregular satellite' | 'retrograde satellite';Defined in: celestial-bodies/moons.ts:47
Classification of the moon.
display?
display?: DisplayInterface;Defined in: celestial-bodies/moons.ts:78
How to draw the moon: its colour, and state a renderer computes.
ellipsoid?
ellipsoid?: EllipsoidInterface;Defined in: celestial-bodies/moons.ts:65
Reference ellipsoid, from the IAU Working Group on Cartographic Coordinates and Rotational Elements, where it gives one. radius is the mean radius.
id
id: string;Defined in: celestial-bodies/moons.ts:42
Stable identifier, used by parent references. Never translated.
mu?
mu?: number;Defined in: celestial-bodies/moons.ts:70
Standard gravitational parameter
name
name: string;Defined in: celestial-bodies/moons.ts:44
Name of the moon (e.g., "Io", "Europa", "Titan").
observations?
observations?: MoonObservationsInterface;Defined in: celestial-bodies/moons.ts:83
What is measured about it, with uncertainties and sources, apart from the values the equations use.
orbit
orbit: OrbitInterface;Defined in: celestial-bodies/moons.ts:52
Orbit around the parent.
parent
parent: string;Defined in: celestial-bodies/moons.ts:50
Id of the planet, or asteroid, the moon orbits (e.g., 'jupiter', '65803-didymos').
radius
radius: DistanceInterface;Defined in: celestial-bodies/moons.ts:59
Mean radius of the moon in kilometres; the IAU's, where it gives one.
rotation?
rotation?: RotationInterface;Defined in: celestial-bodies/moons.ts:57
How the moon spins: its sidereal rotation period and direction. Given where the IAU, or a measurement, publishes one.
type?
type?: undefined;Defined in: celestial-bodies/moons.ts:45
x?
x?: DistanceInterface;Defined in: celestial-bodies/moons.ts:72
X-coordinate in a distance-based system (optional).
y?
y?: DistanceInterface;Defined in: celestial-bodies/moons.ts:74
Y-coordinate in a distance-based system (optional).
z?
z?: DistanceInterface;Defined in: celestial-bodies/moons.ts:76
Z-coordinate in a distance-based system (optional).