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

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

Interface: AbsoluteBoxel

Defined in: src/astro/system-address.ts:69

A boxel's position on the per-size-class boxel grid, counted from the galaxy corner.

Remarks

These are grid indices, not light-years: one step is one boxel edge, which depends on the size class (boxelEdgeLy from ./mass-code converts).

Example

import { decodeSystemAddress } from '@elite-dangerous-almanac/core/astro/system-address';
import type { AbsoluteBoxel } from '@elite-dangerous-almanac/core/astro/system-address';

const boxel: AbsoluteBoxel = decodeSystemAddress(3309179996515n).absoluteBoxel;

Properties

x

readonly x: number

Defined in: src/astro/system-address.ts:71

Boxel index along the galactic X axis.


y

readonly y: number

Defined in: src/astro/system-address.ts:73

Boxel index along the galactic Y axis.


z

readonly z: number

Defined in: src/astro/system-address.ts:75

Boxel index along the galactic Z axis.

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