Skip to main content
GameDev.net gamedev.net
🔒 Locked

Matrix Rotations

Started by ctMarine2009 Aug 5, 2010 at 4:12 PM 0 replies 900+ views
Original Post
ctMarine2009
ctMarine2009
If my linear algebra prof from college ever saw this post he would probably revoke my degree but here goes. I've got a 3x3 matrix that represents two different sets of axis (axii?)

| a11 a12 a13 |
| a21 a22 a23 |
| a31 a32 a33 |

The rows represent entity axis in world space (geocentric if you're interested).
The columns represent world axis in entity space.

I want to rotate the entity an arbitrary roll, pitch, yaw degrees/radians whatever but I have no clue how to keep the columns and rows agreeing with each other. Any help would be most appreciated.

Chris
Emergent
Emergent
The rows and columns always "agree." The inverse of a rotation matrix is its transpose.

As for using roll-pitch-yaw coordinates...
1 - Do you really need to? Usually working directly with rotation matrices is easier.
2 - If you really need to, just google "Euler angles to rotation matrix" or similar and you'll find all the formulas you need.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.