Skip to main content

Crate morton_transcoding

Crate morton_transcoding 

Source

Functionsยง

checked_encode
Encodes a D-Dimensional morton code returns None if any coordinate is too large to encode in a usize. See max_index_size
decode
Converts a morton code to a D-Dimensional coordinate
encode
Encodes a D-Dimensional morton code. Bits may truncate if too large to encode in a usize. Use checked_encode or max_index_size to check for truncation.
max_encoded_size
The largest size an encoded value can be, when created from coordinates less than max_index_size
max_index_size
The largest size a single dimension can be without truncating bits