Skip to main content

morton_encode

Function morton_encode 

Source
pub fn morton_encode(x: u32, y: u32, z: u32) -> u32
Expand description

Morton code (Z-order curve) interleave for a 3D position.

Quantizes each coordinate to 10 bits, then interleaves.