hexCorners()
function hexCorners(
centerX,
centerY,
radius
): readonly [number, number][];Defined in: packages/core/src/hexbin/bins.ts:29
The six vertices of a pointy-top hexagon, in provider coordinates, starting at the top vertex and going clockwise. Shared by the painter and the tests so "what shape is a hex bin" has one definition.
Parameters
| Parameter | Type |
|---|---|
centerX | number |
centerY | number |
radius | number |
Returns
readonly [number, number][]