Hi all,
I need some clarification on rotation about an axis using matrices.
I have one book that describes the rotation around the Z axis as being:
cos(A) sin(A) 0 0
-sin(A) cos(A) 0 0
0 0 1 0
0 0 0 1
Now this is in a Row major form. I'm using DX so I have Translated it to a column major form as below:
cos(A) -sin(A) 0 0
sin(A) cos(A) 0 0
0 0 1 0
0 0 0 1
But a website that I have seen says that this should be (in column major form):
cos(A) sin(A) 0 0
2sin(A) cos(A) 0 0
0 0 1 0
0 0 0 1
This seems to skew the object, not rotate it??
Can anyone enlighten me as to which is correct?
Thanks.