morton_encode_u32

Function morton_encode_u32 

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

Encode x,y,z position into a u64 morton value. Input should be 0..=2u16.pow(10) (or 1u16 << 10) (only included for reference, this isn’t reasonably accurate for most BVHs)