Jump to content
  • Advertisement
Sign in to follow this  
Metro_Mystery

Simple 2D Matrix Question

This topic is 3829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If a row vector is multiplied by the 2D rotation matrix (therefore the "to be transformed" vector has to be infront of the transformation matrix)- must that 2D rotation matrix become transposed if the same vector is represented as a column vector and lies after the transformation matrix? I think that's how it goes, but most sites on the net state the 2D rotation transformation is cos() -sin() sin() cos() and hence assumes the vector is a column vector that lies after the transformation matrix.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Metro_Mystery
If a row vector is multiplied by the 2D rotation matrix (therefore the "to be transformed" vector has to be infront of the transformation matrix)- must that 2D rotation matrix become transposed if the same vector is represented as a column vector and lies after the transformation matrix?

Yes. Let's say you have the equation xA = y, and you want to switch to column vectors. You'd need to transpose 'y', which means you also need to transpose the other side of the equation for them to remain equal. You get (xA)T = yT, which equals ATxT = yT. Reversing the multiplication order when distributing a transpose or inverse operator is often overlooked.

Share this post


Link to post
Share on other sites
I should also note that if you didn't change the multiplication order and just went from row vectors to column vectors, that the multiplication wouldn't have worked anyway (a 3x1 post-multiplied by a 3x3 is illegal).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!