Yields iterator of Z-curve indices in given nD bounding box.
bbox min point
bbox max point
Decomposes given Z index into individual bit patterns, one per dimension.
-
-
Decodes a single nD component from given Z index.
Z index
bits per component
number of dimensions
bit offset (for curr dimension)
Encodes a single nD point component as partial Z index.
component value
bits per component
number of dimensions
bit offset (for curr dimension)
existing partial Z result
Generated using TypeDoc
Computes the next valid Z index in bbox defined by
zmin
/zmax
and greater thanzcurr
. Returns -1 if no further indices are in the box.Partially based on: https://github.com/statgen/LDServer/blob/develop/core/src/Morton.cpp#L38