hexcell
A hexagon cell for a hexgrid
npm install hexcell --save
Example
var Point = ;var Hexcell = ; var point = 2 3;var cell = point extraData: 3 ;console; // 3
Methods
Hexcell(point2d)
Creates a hexcell at point point2d
Hexcell(point2d, data)
Creates a hexcell at point point2d
with an object data
that contains data
Hexcell.data
The data attached to this cell