astro.Function.boxelInternalSize - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Function: boxelInternalSize()

boxelInternalSize(sizeClass): number

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

Return the boxel edge for a size class in internal units (32 units per ly).

Parameters

sizeClass

number

An integer from 0 through 7.

Returns

number

The boxel edge in internal units (320 through 40960). Divide by 32 for light-years, or use boxelEdgeLy from ./mass-code.

Throws

If sizeClass is outside 0–7.

Example

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

boxelInternalSize(3);      // -> 2560 internal units
boxelInternalSize(3) / 32; // -> 80 ly, the edge of a d-class boxel
⚠️ **GitHub.com Fallback** ⚠️