rotate CW
x and y wrapping