Skip to content

Evaluate Z-order indexing (morton encoding) for types, iterators, and tuples of BitCollections.

Notifications You must be signed in to change notification settings

blakehawkins/zdex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zdex   Latest version License Docs badge Issues badge

Evaluate Z-order indexing for types, iterators, and tuples of BitCollections.

See also morton_encoding.

Example

Here's a basic example using the built-in FromU8 BitCollection - see more examples in the docs.

use zdex::*;

fn main() -> Result<(), std::io::Error> {
  let v1: FromU8 = 0b0011.into();
  let v2: FromU8 = 0b1111.into();

  // Prints "Vob[01011111]".
  println!("{:?}", (v1, v2).z_index()?);

  Ok(())
}

About

Evaluate Z-order indexing (morton encoding) for types, iterators, and tuples of BitCollections.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages