astro.Function.sectorNameFromGalacticPosition - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / astro / sectorNameFromGalacticPosition
sectorNameFromGalacticPosition(
position):string
Defined in: src/astro/galaxy-grid.ts:105
The procedural sector name for a galactic position.
The one-call form of sectorGridPositionFromGalacticPosition followed by sectorNameFromGridPosition — "which sector is this point in?".
Galactic position in light-years, Sol at the origin.
string
The canonically-cased procedural sector name (e.g. Synuefe,
Blae Eock).
If the position lies outside the sector grid, or the grid slot has no procedurally assigned name.
This is always the procedural sector. A system inside a hand-authored region
(Pleiades, Coalsack, …) is named after that region instead — resolve those with
findHandAuthoredRegionAt from ./hand-authored-regions.
import { sectorNameFromGalacticPosition } from '@elite-dangerous-almanac/core/astro/galaxy-grid';
sectorNameFromGalacticPosition({ x: 751, y: -179, z: -91 }); // -> 'Synuefe'