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:
diameteranddistancein light-years (ly); black holeradius,x,yin astronomical units (au).Black hole
massis in solar masses (). 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.
| id | name | type | diameter | distance | blackHole.name | blackHole.mass | blackHole.radius | blackHole.x | blackHole.y |
|---|---|---|---|---|---|---|---|---|---|
| milky-way | Milky Way | Barred Spiral | 105700 ly | 0 ly | Sagittarius A* | 4154000 | 0.08 au | 0 au | 0 au |
| andromeda | Andromeda | Barred Spiral | 220000 ly | 2537002 ly | Andromeda Central Black Hole | 1100000 | 5 au | 0 au | 1604424 au |
| triangulum | Triangulum | Spiral | 60000 ly | 3000003 ly | Triangulum Central Black Hole | 1500000 | 0.1 au | 0 au | 1897230 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
Example
ts
console.log(GALAXIES[0].name); // "Milky Way"