#### Archived

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

# 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.

## 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 on other sites
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);

Thank you much.

1. 1
Rutin
23
2. 2
3. 3
JoeJ
20
4. 4
5. 5

• 29
• 40
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631740
• Total Posts
3001965
×