Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

31337

D3DXMATRIX - quick question

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

The operator (int row, int colum) returns a float reference or a float. My question is in the following matrix: [ 0 4 8 12 ] [ 1 5 9 13 ] [ 2 6 10 14 ] [ 3 7 11 15 ] what would myMatrix(0, 0) return? What would myMatrix(1, 0) return? What would myMatrix(0, 1)? Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
0,0 = 0
1,0 = 1
0,1 = 4

//-------------------------------
D3DXMATRIX mat;
mat._11 = 11;
mat._12 = 12;
mat._13 = 13;
mat._14 = 14;
mat._21 = 21;
mat._22 = 22;
mat._23 = 23;
mat._24 = 24;
mat._31 = 31;
mat._32 = 32;
mat._33 = 33;
mat._34 = 34;
mat._41 = 41;
mat._42 = 42;
mat._43 = 43;
mat._44 = 44;
float rt00 = mat(0,0);
float rt10 = mat(1,0);
float rt01 = mat(0,1);

Share this post


Link to post
Share on other sites

  • 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!