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

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

Interface: SectorGridPosition

Defined in: src/astro/sector-name.ts:42

Integer position of a sector on the galaxy's sector grid.

Each axis indexes a 1280 ly cube. x and z span the full 7-bit range (0–127); y only reaches 0–63 for real systems (the system-address format has a 6-bit y field), but the naming algorithm itself treats all three as 7-bit.

Example

import type { SectorGridPosition } from '@elite-dangerous-almanac/core/astro/sector-name';

const sector: SectorGridPosition = { sectorX: 39, sectorY: 31, sectorZ: 18 };

Properties

sectorX

readonly sectorX: number

Defined in: src/astro/sector-name.ts:44

Sector index along the galactic X axis (0–127).


sectorY

readonly sectorY: number

Defined in: src/astro/sector-name.ts:46

Sector index along the galactic Y axis (0–63 for addressable systems).


sectorZ

readonly sectorZ: number

Defined in: src/astro/sector-name.ts:48

Sector index along the galactic Z axis (0–127).

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