Skip to content

Documentation / @interstellar-tools/constants / GALAXIES

Variable: GALAXIES ​

ts
const GALAXIES: GalaxiesType;

Defined in: bodies/galaxies.ts:28

Represents a collection of galaxies within the space visualization.

INFO

  • Units: diameter and distance in light-years (ly); black hole radius, x, y in astronomical units (au).

  • Black hole mass is in solar masses (M⊙).

  • Values are mainly for visualization; not all are observationally exact.

  • Sources: compiled from public references, mainly NASA, NASA JPL, ESA and Wikipedia. See data sources.

Full list of galaxies in the dataset ​

This list is not an exhaustive list, and addition/changes will be added over time.

idnametypediameterdistanceblackHole.nameblackHole.massblackHole.radiusblackHole.xblackHole.y
milky-wayMilky WayBarred Spiral105700 ly0 lySagittarius A*41540000.08 au0 au0 au
andromedaAndromedaBarred Spiral220000 ly2537002 lyAndromeda Central Black Hole11000005 au0 au1604424 au
triangulumTriangulumSpiral60000 ly3000003 lyTriangulum Central Black Hole15000000.1 au0 au1897230 au

Example item in dataset:

ts
{
  id: 'milky-way',
  name: 'Milky Way',
  type: 'Barred Spiral',
  /** Diameter of the galaxy in light-years. */
  diameter: { value: 105700, unit: 'ly' },
  /** Distance from the reference point (Milky Way itself). */
  distance: { value: 0, unit: 'ly' },
  /** Supermassive black hole at the center. */
  blackHole: {
    name: 'Sagittarius A*',
    /** Mass of the black hole in Solar Masses ($ M_\odot $). */
    mass: 4.154e6,
    /** Schwarzschild radius (approximate) in AU. */
    radius: { value: 0.08, unit: 'au' },
    /** Positional reference within the galaxy in AU. */
    x: { value: 0, unit: 'au' },
    y: { value: 0, unit: 'au' }
  }
},

See ​

GalaxiesType.

Example ​

ts
console.log(GALAXIES[0].name); // "Milky Way"