UNPKG

@caveworld/honeycomb-grid

Version:
9 lines (8 loc) 318 B
import { Hex, HexCoordinates } from '../../hex'; import { RotationLike, Traverser } from '../types'; export declare function spiral<T extends Hex>({ radius, start, rotation }: SpiralOptions): Traverser<T>; export interface SpiralOptions { start?: HexCoordinates; radius: number; rotation?: RotationLike; }