worldToAxial
worldToAxial(
position,geometry?):HexCoordinates
Defined in: packages/declarative-hex-worlds/src/coordinates/grid.ts:199
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 = DEFAULT_HEX_GEOMETRY