wrap¶
- gtravyl.wrap(ind: tuple[int, int], dim: tuple[int, int]) tuple[int, int]¶
Wraps the cell values around. So, if you start at (0, 0) and go left you end up at (x dimension, 0) :param ind: The index to potentially modify (that is, wrap it if
applicable).
- Parameters:
dim – Dimensions of the grid.