Function rtbvh::morton_split[][src]

pub fn morton_split(int: u32) -> u32
Expand description

Split an unsigned integer such that its bits are spaced by 2 zeros. For instance, morton_split(0b00110010) = 0b000000001001000000001000.