I have a 6x6 grid, and in its first cell (row 1, column 1), its value is (-3, 2) and on its last cell (row 6, cell 6), its value is (2, -3).
Another values inside this grid are:
$(x_0, y_0) => (x_1, y_1)$
(1, 2) => (-2, 2)
(1, 3) => (-1, 2)
(1, 4) => (0, 2)
(1, 5) => (1, 2)
(1, 6) => (2, 2)
(2, 1) => (-3, 1)
(3, 1) => (-3, 0)
(4, 1) => (-3, -1)
(5, 1) => (-3, -2)
(6, 1) => (-3, -3)
$(x_0, y_0)$ are the row, column of the grid, and $(x_1, y_1)$ are the values on each cell.
Is there any formula to translate $(x_0, y_0)$ into $(x_1, y_1)$?
Maybe the grid will be bigger than 6x6 (or smaller...). All the grids will be nxn., and the first cell will be always (-n/2, n/2 - 1).