Given a cell orientation and the (i,j)-index of a subcell (0=(0,0), 1=(0,1), 2=(1,0), 3=(1,1)), return the order in which this subcell is visited by the Hilbert curve (a position in the range [0..3]).
IJ_TO_POSorientationij -> pos
See Implementation
Given a cell orientation and the (i,j)-index of a subcell (0=(0,0), 1=(0,1), 2=(1,0), 3=(1,1)), return the order in which this subcell is visited by the Hilbert curve (a position in the range [0..3]).
IJ_TO_POSorientationij -> pos