0
所以我需要能够在保留原始数组的同时获得旋转数组的特定部分。虚拟阵列旋转
我有什么不能如何应用,我不知道是因为旋转还是其他原因。
什么我对旋转(在伪代码):
get(x, y, rot%4):
rot == 1 then arr[height - 1 - y, x]
rot == 2 then arr[width - 1 - x, height - 1- y]
rot == 3 then (rot 2, rot 1)
else arr[x, y]
我99%肯定旋转180度(2)按预期工作,但我敢肯定,我搞乱向上90度,延长270度。