Documentation / @interstellar-tools/types / CometInterface
Interface: CometInterface
Defined in: celestial-bodies/comets.ts:26
Represents a comet in the solar system simulation.
Cometary Orbital Parameters, all in orbit:
- Semi-major axis (
a): Defines the size of the comet’s orbit in Astronomical Units (AU). - Orbital eccentricity (
e): Determines how elliptical the orbit is ($0 = $ circular, closer to= highly elliptical). - Inclination (
i): The tilt of the orbit relative to the ecliptic plane, measured in degrees. - Argument of perihelion (
w): The angle from the ascending node to the perihelion. - Longitude of the ascending node (
om): Defines where the orbit crosses the ecliptic. - Perihelion distance (
q): The closest approach to the Sun, as a distance. - Direction (
retrograde):truewheni > 90°, like Halley's comet. - Angle (
angle): The true anomaly at J2000, as for every other body.
Drawing (display): colour and a scaled drawing size (not the physical radius), and state a renderer computes; see DisplayInterface.
Properties
category
category: 'halley-type comet' | 'long-period comet' | 'jupiter-family comet';Defined in: celestial-bodies/comets.ts:34
Category classification of the comet.
display?
display?: DisplayInterface;Defined in: celestial-bodies/comets.ts:53
How to draw the comet: its colour and drawn size, and state a renderer computes.
id
id: string;Defined in: celestial-bodies/comets.ts:28
Stable identifier, used by parent references. Never translated.
name
name: string;Defined in: celestial-bodies/comets.ts:30
Name of the comet (e.g., "Halley", "Hale-Bopp").
observations?
observations?: CometObservationsInterface;Defined in: celestial-bodies/comets.ts:58
What is measured about it, with uncertainties and sources, apart from the values the equations use.
orbit
orbit: FullOrbitInterface;Defined in: celestial-bodies/comets.ts:38
Orbit around the parent, with all elements including i, w, om and q.
parent
parent: string;Defined in: celestial-bodies/comets.ts:36
Id of the star the comet orbits (e.g., 'sun').
radius
radius: DistanceInterface;Defined in: celestial-bodies/comets.ts:51
Radius of the comet (for visualization purposes).
rotation?
rotation?: RotationInterface;Defined in: celestial-bodies/comets.ts:43
How the nucleus spins: its sidereal rotation period and direction, at the time it was measured. Given where one is published.
type
type: 'periodic comet' | 'oort cloud comet' | 'short-period comet';Defined in: celestial-bodies/comets.ts:32
Type of comet based on its orbital characteristics.
x?
x?: DistanceInterface;Defined in: celestial-bodies/comets.ts:45
X-coordinate in a distance-based system (optional).
y?
y?: DistanceInterface;Defined in: celestial-bodies/comets.ts:47
Y-coordinate in a distance-based system (optional).
z?
z?: DistanceInterface;Defined in: celestial-bodies/comets.ts:49
Z-coordinate in a distance-based system (optional).