astro.Interface.NebulaWithDistance - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / astro / NebulaWithDistance

Interface: NebulaWithDistance

Defined in: src/astro/nebulae.ts:95

A Nebula annotated with its distance from a queried point.

Extends

Properties

distanceLy

readonly distanceLy: number

Defined in: src/astro/nebulae.ts:97

Straight-line distance from the queried coordinates, in light-years.


name

readonly name: string

Defined in: src/astro/nebulae.ts:72

Display name, e.g. "Witch Head Nebula". For procedurally-named nebulae this is usually the system name, sometimes with a community name appended in parentheses ("Aemonz WZ-Y e6771 (Lazurite Nebula)").

Inherited from

Nebula.name


regionId

readonly regionId: number

Defined in: src/astro/nebulae.ts:91

Id of the galactic codex region the nebula sits in, 1–42.

Remarks

Resolve it to a name with getCodexRegion from ./codex-region — that costs ~9 KiB of region metadata rather than the ~208 KiB lookup grid findCodexRegionAt needs.

Inherited from

Nebula.regionId


system

readonly system: string

Defined in: src/astro/nebulae.ts:74

The in-game system the nebula is catalogued at, e.g. "Witch Head Sector IR-W c1-8".

Inherited from

Nebula.system


type

readonly type: NebulaType

Defined in: src/astro/nebulae.ts:82

Which class of nebula this is.

Inherited from

Nebula.type


x

readonly x: number

Defined in: src/astro/nebulae.ts:76

Galactic X of the catalogued system, in light-years (Sol at origin).

Inherited from

Nebula.x


y

readonly y: number

Defined in: src/astro/nebulae.ts:78

Galactic Y of the catalogued system, in light-years (Sol at origin).

Inherited from

Nebula.y


z

readonly z: number

Defined in: src/astro/nebulae.ts:80

Galactic Z of the catalogued system, in light-years (Sol at origin).

Inherited from

Nebula.z

⚠️ **GitHub.com Fallback** ⚠️