What is the idea behind the use of bitwise operations when converting 2D to 1D via the Hilbert curve?
I’m struggling with understanding the MATLAB open source about converting 2D (x, y) to 1D (d) via the Hilbert curve. The author used bitwise AND and XOR in lines 17-19:
link