Skip to content

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.

ParameterTypeDescription
nnumberCurve index, in [0, size²).
sizenumberSide length of the grid; must be a power of two.

Point