All examples By author By category About

nitaku

Quaternary numbers for indexing a quadtree

This example uses strings of quaternary digits to generate squares in a quadtree. The string acts as a unique identifier for squares of different size and position.

Click here to compare with a Hilbert displacement.