Hilbert Curve Algorithm
Rust implentation of the Hilbert Curve algoritm. The library allows to move from point to index and index to point.
How to use?
Index to point
let hilbert_curve = new; // Set the Hilbert order here
let point = hilbert_curve.index_to_point; // Get the point for index 0
Point to index
let hilbert_curve = new;// Set the Hilbert order here
let index = hilbert_curve.point_to_index; // Get the index for (0,0) point
Test and Coverage
Coverage
Further explanation in the Mozilla grcov website
Documentation