gridify_gilbert
function gridify_gilbert(D, parameters?): Point[];Defined in: gilbert.ts:280
Removes overlaps by snapping points onto a generalized Hilbert curve whose
grid matches the data’s aspect ratio, rather than padding to a square as
hilbert must.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
D | readonly Point[] | Input points. |
parameters | GilbertParameters | - |
Returns
Section titled “Returns”Point[]
One [column, row] cell per input point, in input order.
Throws
Section titled “Throws”If the grid has fewer cells than there are points.