#hilbert #curve #mathematics #fractal

hilbert_curve

A simple implementation of Hilbert curve mapping algorithms in Rust

2 unstable releases

0.2.0 Jan 25, 2019
0.1.0 Jan 25, 2019

#1277 in Math

Download history 12/week @ 2023-10-18 18/week @ 2023-10-25 19/week @ 2023-11-01 18/week @ 2023-11-08 15/week @ 2023-11-15 19/week @ 2023-11-22 18/week @ 2023-11-29 13/week @ 2023-12-06 16/week @ 2023-12-13 15/week @ 2023-12-20 14/week @ 2023-12-27 10/week @ 2024-01-03 16/week @ 2024-01-10 17/week @ 2024-01-17 8/week @ 2024-01-24 11/week @ 2024-01-31

52 downloads per month
Used in 3 crates

CC0 license

5KB
55 lines

hilbert_curve

hilbert_curve is a simple implementation of Hilbert curve mapping algorithms in Rust.

Documentation


lib.rs:

hilbert_curve is a simple implementation of Hilbert curve mapping algorithms in Rust.

It assumes a square space divided into n by n cells (n being a power of 2) with integral coordinates: (0, 0) in the lower left corner, (n − 1, n − 1) in the upper right corner, and a distance d that starts at 0 in the lower left corner and goes to n^2 − 1 in the lower-right corner.

No runtime deps