hilbert_decode
function hilbert_decode(n, size): Point;Defined in: hilbert.ts:60
Maps a curve index back to its grid cell — the inverse of hilbert_encode.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
n | number | Curve index, in [0, size²). |
size | number | Side length of the grid; must be a power of two. |