UNPKG
@caveworld/honeycomb-grid
Version:
latest (4.0.0-alpha-5fb3fd1)
4.0.0-alpha-9bbafa2
4.0.0-alpha-5fb3fd1
Create hexagon grids easily
abbekeultjes.nl/honeycomb
flauwekeul/honeycomb
@caveworld/honeycomb-grid
/
dist
/
hex
/
functions
/
pointToCube.d.ts
3 lines
(2 loc)
•
253 B
TypeScript
View Raw
1
2
3
import
{
HexPrototype
,
Point
}
from
'../types'
;
export
declare
const
pointToCube
:
(
{ dimensions: { xRadius, yRadius }, origin, isPointy }:
Pick
<
HexPrototype
,
'dimensions'
|
'origin'
|
'isPointy'
>, { x, y }:
Point
) =>
import
(
"../types"
).
CubeCoordinates
;