gridify_gosper
function gridify_gosper(D, __namedParameters): Point[];Defined in: gosper.ts:405
Removes overlaps by snapping each point to a Gosper curve cell, resolving
contested cells along the curve. Produces a hexagonal grid of 7^level
cells, returned in the input’s own coordinate range.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
D | readonly Point[] | Input points. |
__namedParameters | GosperParameters | - |
Returns
Section titled “Returns”Point[]
One cell centre per input point, in input order.
Throws
Section titled “Throws”If there are more points than cells.