worldToAxial
worldToAxial(
position,geometry?):HexCoordinates
Defined in: src/coordinates/grid.ts:168
Converts world X/Z coordinates to the nearest axial hex coordinate.
Parameters
Section titled “Parameters”position
Section titled “position”Pick<WorldPosition, "x" | "z">
geometry?
Section titled “geometry?”HexGeometry = KAYKIT_HEX_GEOMETRY