Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

is this how you multiply a matrix with a vector?

This topic is 4861 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

Hi, i want to multiply a vector with a matrix. I am curious if this is how to do it.


           m11 m12 m13          x         m11*x + m12*y + m13*z
M * v =    m21 m22 m23    *     y    =    m21*x + m22*y + m23*z
           m31 m32 m33          z         m31*x + m32*y + m33*z

And if thats so, does anyone know where i can get some precalculated answers to test? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Yes, its correct.

Always multiply a row of the first with a column of the second vector/matrix.

Edit:
For an example of a rotation matrix see here.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!