DotNet.Astronomy.Class.GalaxyGrid - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Astronomy / GalaxyGrid
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/GalaxyGrid.cs:19
The bridge from a galactic position to the naming grid.
SectorName reads a sector's place on the grid, and SystemAddress works in the game's own internal units. A caller holds neither. It holds light years with Sol at the origin, which is what the player journal, EDSM and Spansh report. This class converts one to the other.
The three frames the surface uses are the galactic position in light years from Sol, the sector grid in cubes of 1280 light years from the galaxy corner, and the internal units of one thirty-second of a light year from the same corner.
staticreadonlyOrigin:GalacticPosition
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/GalaxyGrid.cs:26
The corner of the galaxy, in light years from Sol.
Sector and boxel positions are counted from this point. The codex region map states the same corner, and a test holds the two together.
constSectorEdgeLy:int=1280
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/GalaxyGrid.cs:29
The edge of one sector cube, in light years.
staticToSectorGridPosition(position):SectorGridPosition
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/GalaxyGrid.cs:39
Reads the sector cube one galactic position falls in.
The position in light years, with Sol at the origin.
The sector's place on the grid.
ArgumentNullException
The position is absent.
ArgumentOutOfRangeException
The position lies outside the grid of sector cubes, which is outside the galaxy the addressing reaches.
staticToSectorName(position):string
Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/GalaxyGrid.cs:70
Reads the procedural sector name of one galactic position.
The position in light years, with Sol at the origin.
string
The sector name, such as Synuefe or Blae Eock.
The answer is always the procedural sector. A system inside a region the game names by hand carries that region's name instead.
ArgumentNullException
The position is absent.
ArgumentOutOfRangeException
The position lies outside the grid, or the generator gives that place no name.