[−][src]Function morton_encoding::morton_encode_u32_2d
pub fn morton_encode_u32_2d(x: [u32; 2]) -> u64
Encodes an array of 2 u32
values ([u32; 2]
), producing one u64
value as the result.
In the event that one u64
is strictly larger than 2 u32
s, all significant bits are gathered at the end, and extraneous bits at the beginning are cleared.