PitchKit
API Reference@pitchkit/coreFunctions

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

ParameterType
centerXnumber
centerYnumber
radiusnumber

Returns

readonly [number, number][]

On this page