@caveworld/honeycomb-grid
Version:
Create hexagon grids easily
7 lines (6 loc) • 397 B
TypeScript
import { CubeCoordinates, HexCoordinates, HexPrototype } from '../types';
/**
* Util for converting offset/axial/cube/tuple coordinates to cube coordinates. It's not placed in /src/utils because that causes circular dependencies.
* @private
*/
export declare function assertCubeCoordinates(hexPrototype: Pick<HexPrototype, 'offset' | 'isPointy'>, coordinates: HexCoordinates): CubeCoordinates;