Skip to main content

morton_code

Function morton_code 

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

Compute a 30-bit Morton code for a normalised 3-D position (x, y, z), where each component is in [0, 1].