Module hilbert_2d::usize

source ·
Expand description

Discrete functions for the pointer-sized unsigned integer type.

Functions

Maps from a 1D index to a 2D coordinate, using a discrete approximation of the Hilbert curve. Recommended for images and matrices.
Maps from a 2D coordinate to an 1D index, using a discrete approximation of the Hilbert curve. Recommended for images and matrices.