1 int transformation
[(2*19 - 1) * (2*19 - 1)][8];
3 const int transformation2
[8][2][2] = {
15 transformation_init (void)
21 for (k
= 0; k
< 8; k
++)
23 for (dy
= -19 + 1; dy
<= 19 - 1; dy
++)
25 for (dx
= -19 + 1; dx
<= 19 - 1; dx
++)
32 transformation2
[k
][0][0] * (dx
) +
33 transformation2
[k
][0][1] * (dy
);
35 transformation2
[k
][1][0] * (dx
) +
36 transformation2
[k
][1][1] * (dy
);
39 transformation
[((dy
+ 19 - 1) * (2 * 19 - 1) +
40 (dx
+ 19 - 1))][k
] = ((tx
) * (19 + 1) + (ty
));