Constant K_POS_TO_IJ

Source
pub const K_POS_TO_IJ: [[usize; 4]; 4];
Expand description

kPosToIJ[orientation][pos] -> ij

Return the (i,j) index of the subcell at the given position ‘pos’ in the Hilbert curve traversal order with the given orientation. This is the inverse of the previous table:

kPosToIJ[r][kIJtoPos[r][ij]] == ij