Decomposing a rotation matrix
- by DeadMG
I have a rotation matrix. How can I get the rotation around a specified axis contained within this matrix?
Edit:
It's a 3D matrix (4x4), and I want to know how far around a predetermined (not contained) axis the matrix rotates. I can already decompose the matrix but D3DX will only give the entire matrix as one rotation around one axis, whereas I…