itacart.boundary.meridian_child

itacart.boundary.meridian_child(row, column, size)[source]

Sub-row and signed offset of a child inside a prime-meridian triangle.

The fold of Figure 4(c): the ordinary grid is reflected onto itself about its diagonal, so (i, j) and (j, i) land in the same sub-row on opposite sides of the meridian. The sub-row is min(i, j) and the offset is j - i, counted in cell sides east of the meridian and negative west of it.

Sub-row k holds 2 * (size - k) - 1 children: one triangle straddling the meridian and size - k - 1 parallelograms on each side. Summed over the sub-rows that is exactly size * size, which is what makes the refinement a partition.

Parameters:
Return type:

tuple[int, int]