UNPKG

@caveworld/honeycomb-grid

Version:
3 lines (2 loc) 199 B
import { HexCoordinates, HexPrototype } from '../../hex'; export declare function distance(hexPrototype: Pick<HexPrototype, 'offset' | 'isPointy'>, from: HexCoordinates, to: HexCoordinates): number;