UNPKG

@caveworld/honeycomb-grid

Version:
7 lines (6 loc) 397 B
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;