gridify_hilbert
function gridify_hilbert(D, __namedParameters): Point[];Defined in: hilbert.ts:155
Removes overlaps by snapping each point to a Hilbert curve cell, resolving
contested cells along the curve. The grid is square, 2^level a side.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
D | readonly Point[] | Input points. |
__namedParameters | HilbertParameters | - |
Returns
Section titled “Returns”Point[]
One grid cell per input point, in input order.
Throws
Section titled “Throws”If there are more points than cells.