*shouldn't*be trying to do this but I'm going for it anyway.

From what I've gathered, if I have a 3x3 matrix, I first transpose it.

After the transposition, I should multiply it by:

0,0,1

0,1,0

1,0,0

if I want a clockwise rotation from the original matrix.

If I want a counter-clockwise rotation, I would multiply the transposed matrix by

1,0,0

0,1,0

0,0,1

Now for a 4x4 matrix, this doesn't work. My question is, how can I do this with a 4x4 matrix? (Keep in mind I don't know much about matrix math so if you can dumb it down or provide links that would be great).

I tried multiplying by

0,0,0,1

0,0,1,0

0,1,0,0

1,0,0,0

but that's incorrect.

I appreciate the help.