Skip to content

Documentation / @interstellar-tools/types / AsteroidInterface

Interface: AsteroidInterface ​

Defined in: celestial-bodies/asteroids.ts:121

Canonical shape for an asteroid record: identity, dynamics, and optional visualization aides.

INFO

Orbital elements (angles & distances), all in orbit:

  • Semi-major axis a should be in astronomical units (au).
  • Eccentricity e for bound ellipses typically satisfies (0 \le e < 1).
  • Inclination i, argument of perihelion w (ω), and longitude of ascending node om (Ω) are given in degrees.
  • True anomaly angle (ν) is in radians.
  • Perihelion distance (q) should satisfy:
q=a(1−e)

Period convention: period is a positive duration (e.g., in days). A retrograde orbit (i > 90°) has retrograde: true.

Coordinates: Optional x,y,z are distances in a chosen reference frame (e.g., ecliptic J2000). Always document the frame you use in calling code.

Properties ​

category ​

ts
category: AsteroidCategory;

Defined in: celestial-bodies/asteroids.ts:132

Specific family/group classification (e.g., Apollo group, Plutino).


display? ​

ts
display?: DisplayInterface;

Defined in: celestial-bodies/asteroids.ts:174

How to draw the asteroid: its colour and drawn size, and state a renderer computes.


id ​

ts
id: string;

Defined in: celestial-bodies/asteroids.ts:123

Stable identifier, used by parent references. Never translated.


mu? ​

ts
mu?: number;

Defined in: celestial-bodies/asteroids.ts:171

Standard gravitational parameter μ=GM of the asteroid alone, in m³/s², as the orbit equations take it. Given where a moon or a spacecraft has weighed it, like Ida by Dactyl, or Didymos by Dimorphos.


name ​

ts
name: string;

Defined in: celestial-bodies/asteroids.ts:126

Name of the asteroid (e.g., "Ceres", "Vesta").


observations? ​

ts
observations?: AsteroidObservationsInterface;

Defined in: celestial-bodies/asteroids.ts:179

What is measured about it, with uncertainties and sources, apart from the values the equations use.


orbit ​

ts
orbit: FullOrbitInterface;

Defined in: celestial-bodies/asteroids.ts:141

Orbit around the parent, with all elements including i, w, om and q.


parent ​

ts
parent: string;

Defined in: celestial-bodies/asteroids.ts:138

Id of the star the asteroid orbits (e.g., 'sun').


radius ​

ts
radius: DistanceInterface;

Defined in: celestial-bodies/asteroids.ts:164

Mean/characteristic radius (e.g., in km) as a distance value.


rotation? ​

ts
rotation?: RotationInterface;

Defined in: celestial-bodies/asteroids.ts:147

How the asteroid spins: its sidereal rotation period and direction, from the IAU or its light curve. Given where one is published.


spectralType ​

ts
spectralType: AsteroidSpectralType;

Defined in: celestial-bodies/asteroids.ts:135

Spectral/taxonomic class (composition & albedo proxy).


type ​

ts
type: AsteroidType;

Defined in: celestial-bodies/asteroids.ts:129

General dynamical region (e.g., main-belt, NEO, Trojan).


x? ​

ts
x?: DistanceInterface;

Defined in: celestial-bodies/asteroids.ts:157

Optional Cartesian coordinates (distance values) in a specified frame. ::: info

Provide the reference frame (e.g., ecliptic J2000) in calling code.

:::


y? ​

ts
y?: DistanceInterface;

Defined in: celestial-bodies/asteroids.ts:159

See x.


z? ​

ts
z?: DistanceInterface;

Defined in: celestial-bodies/asteroids.ts:161

See x.