Skip to content

ryanavella/hilbert16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hilbert16

Hilbert transforms between 1D and 2D space, optimized for u16 coordinates.

License: MIT License: Unlicense crates.io docs.rs

Hilbert

Examples

use hilbert16::{Curve, Point};

let order = 9;
let curve = Curve::new(order).unwrap();

let p = Point { x: 175, y: 295 };
let d = curve.dist_at(p).unwrap();
println!("{p:?} => {d}");

let d = 94_085;
let p = curve.point_at(d).unwrap();
println!("{d} => {p:?}");

About

Hilbert transforms between 1D and 2D space.

Topics

Resources

License

Unlicense, MIT licenses found

Licenses found

Unlicense
UNLICENSE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages