Skip to content

Documentation / @interstellar-tools/maps / GridPositionInterface

Interface: GridPositionInterface ​

Defined in: terrain/grid.ts:41

A position on a GridInterface, in grid coordinates: fractional row and column, with whole numbers at the cells' centres.

Multiply by the grid's cellSize for metres on the ground: column × cellSize.x east and row × cellSize.y south of the north-west cell's centre. cellToMap places it on a map.

Properties ​

column ​

ts
column: number;

Defined in: terrain/grid.ts:45

Column, from 0 at the west, fractional.


row ​

ts
row: number;

Defined in: terrain/grid.ts:43

Row, from 0 at the north, fractional.