@classmethod
    def origin_index(cls, index):
        row, col = index
        # there is up on the left of the supershape and down on the right
        origin_row = 0  # supershape is horizontally arranged only
        origin_col = col % 2
        return origin_row, origin_col
Return the equivalent index when the supershape is at the origin.
dataset/ETHPy150Open kobejohn/polymaze/polymaze/shapes.py/Triangle.origin_index