astro.codex region lookup.Interface.BoxelCodexRegionLookup - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / astro/codex-region-lookup / BoxelCodexRegionLookup

Interface: BoxelCodexRegionLookup

Defined in: src/astro/codex-region-lookup.ts:162

A system's boxel 0/0/0 corner (galactic coordinates, in light-years) and the region it falls in.

Example

import { findCodexRegionForBoxel } from '@elite-dangerous-almanac/core/astro/codex-region-lookup';
import type { BoxelCodexRegionLookup } from '@elite-dangerous-almanac/core/astro/codex-region-lookup';

const result: BoxelCodexRegionLookup = findCodexRegionForBoxel(3309179996515n);

Properties

region

readonly region: CodexRegion | null

Defined in: src/astro/codex-region-lookup.ts:170

The region at the boxel corner, or null if it lies outside the mapped grid.


x

readonly x: number

Defined in: src/astro/codex-region-lookup.ts:164

Galactic X of the boxel corner, in light-years.


y

readonly y: number

Defined in: src/astro/codex-region-lookup.ts:166

Galactic Y of the boxel corner, in light-years.


z

readonly z: number

Defined in: src/astro/codex-region-lookup.ts:168

Galactic Z of the boxel corner, in light-years.

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