Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A Perl module for producing a Hilbert Scan path through a given square
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Hilbert Scan

A Hilbert Scan is a path to traverse all points in a 2^n x 2^n square in a path that resembles a Hilbert Curve. Producing such a path was surprisingly tricky!


To use this Module simple use HilbertScan; and call hilbert_scan(log2_side_length) where log2_side_length is n in 2^n described previously. This function will return an array-ref of array-refs which each ref is the (x,y) pair of the coordinate of that step through the grid.

Something went wrong with that request. Please try again.