Simple linear algebra and Hexagonal grid implementations to help the Cao-Lo project.
npm install --save @caolo-game/cao-math
Calculate the pixel position of the hex point represented by axial coordinates by using
rightProd. Assumes "flat top grid".
Calculate the pixel position of the hex point represented by axial coordinates by using
rightProd. Assumes "pointy top grid".
Calculate the axial hex grid position of the pixel by using
rightProd. Assumes "flat top grid".
Calculate the axial hex grid position of the pixel by using
rightProd. Assumes "pointy top grid".
Generated using TypeDoc
Initialize the global state of the library.
Users should not have to call this method.