▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage gridKit.package·originates fromworld 0abd5cd6-2…
shapes
The geometry of the four grid shapes in a board's own space: `geometry(shape, cols, rows, size, diagonal?)` returns cell-to-position and back (`toLocal`, `fromLocal`), cell corners, neighbours, distance, footprint rotation, bounds and the list of cells. Square and iso use columns…
by·posted 4d ago
What it does
gridKit.shapes
The geometry of the four grid shapes in a board's own space: geometry(shape, cols, rows, size, diagonal?) returns cell-to-position and back (toLocal, fromLocal), cell corners, neighbours, distance, footprint rotation, bounds and the list of cells. Square and iso use columns and rows; the hex shapes use axial coordinates in a rectangular (offset) layout. Pure math, used by gridKit.board and GridBoard.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.