astro.Function.boxelInternalSize - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / astro / 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).
number
An integer from 0 through 7.
number
The boxel edge in internal units (320 through 40960). Divide by 32 for
light-years, or use boxelEdgeLy from ./mass-code.
If sizeClass is outside 0–7.
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