[][src]Function morton::interleave_morton

pub fn interleave_morton(x: u16, y: u16) -> u32

Convert 2D spatial coordinates to Morton z-order value

Uses bithacks as described in: http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN