Skip to content

astro.Function.boxelCodeToAbsoluteBoxel

github-actions[bot] edited this page Aug 19, 2026 · 74 revisions

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

Function: boxelCodeToAbsoluteBoxel()

boxelCodeToAbsoluteBoxel(sizeClass, boxelCode, origin): AbsoluteBoxel

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

Absolute boxel indices of a name's boxel code, relative to the galaxy origin.

This is the inverse of the decode split: it turns the base-26 boxel code back into a grid position by adding the region origin (snapped down to the boxel grid). It throws rather than emit a wrong address when the origin has a negative coordinate, when N1 overflows the code, when the boxel code falls outside the region, or when the resulting sector cannot be represented by the address bits.

Parameters

sizeClass

number

Size class 0–7 (mass code ah).

boxelCode

number

The base-26 boxel code (lettersToBoxelCode).

origin

NamingRegionOrigin

The resolved region origin (internal units, 32 per light-year).

Returns

AbsoluteBoxel

The boxel's absolute indices on the per-size-class boxel grid, measured from the galaxy corner.

Throws

If sizeClass is outside 0–7, the origin has a negative coordinate, or the code or the resulting sector is out of range.

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally