Expand description
The most general, but least performant, ways to perform Morton encoding and decoding. The functions contained herein work correctly, but the author makes absolutely no guarantees about how performant they are.
Functions§
- bloat_
custom_ biguint - “Bloats” a given number to an arbitrarily large BigUint.
- morton_
decode_ biguint - Receives a
BigUintvalue and returns an iterator ofBigUintvalues that were decoded from it. - morton_
encode_ biguint - Receives an iterator of
Coorvalues and encodes them all in aBigUint. - shrink_
custom_ biguint - “Shrinks” a given number from an arbitrarily large BigUint.
- tobuint
- A convenience function for converting primitive values to BigUints. Will fail to compile if called with a literal that’s not explicitly declared as unsigned.