| 937 | } |
| 938 | template<class CArray, class Array> |
| 939 | void flipd2(CArray t1, int w1, int h1, Array t2, int& w2, int& h2) { |
| 940 | w2 = h1; h2 = w1; |
| 941 | for (int h = 0; h < h1; ++h) |
| 942 | for (int w = 0; w < w1; ++w) |
| 943 | t2[pos(h2-w-1, w2-h-1, h2, w2)] = t1[pos(h, w, h1, w1)]; |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | // STATISTICS: example-any |