Hi Guys,
Does anyone have a 2D matrix rotation algo they'd like to share?
I'd like to rotate all bits in a byte array so:

byte0: 00001110
byte1: 00001111
byte2: 00001111
byte3: 11111111
byte4: 11111111
byte5: 00001111
byte6: 00001111
byte7: 00001110

becomes:

byte0: 01111110
byte1: 11111111
byte2: 11111111
byte3: 11111111
byte4: 00011000
byte5: 00011000
byte6: 00011000
byte7: 00011000

I can do this if I have a list of coordinates like this:
x_new = y_old
y_new = 1 - (x_old - (8 - 2))
Do this for every coordinate (64 times) and the result is what I want.
Art.