- Home /
Questions about Matrix4x4
So I'm a little stuck with the Matrix4x4 class. So here are some questions that would really help me:
1) What are Matrix4x4's primary function, to transform Vectors or to hold transform data?
2) How would I declare a Matrix4x4?
3) What is the easiest way to fill it with numbers?
A $$anonymous$$atrix4x4 is, as its name clearly says, a 4 by 4 matrix. It's used the same way as any matrix. There is absolutely no reason for anyone to mess around with a matrix unless he/she is perfor$$anonymous$$g computations for graphics or developing an advanced matrix-reliant program (in which case, you would have known what matrices are for to begin with). If you really want to know about matrices, then Wikipedia is prolly your best bet. But if you're just reading up on the different classes, then I suggest you just leave them be. A matrix is a mathematical concept that is used in program$$anonymous$$g, not the other way around.
Answer by DaveA · Jul 31, 2011 at 01:03 AM
You did read this, yes? http://unity3d.com/support/documentation/ScriptReference/Matrix4x4.html
var myMat : Matrix4x4; // js
Matrix4x4 myMat; // c3
See above link which tells of API's for filling it with common operations.
Yes I have read that however it doesn't really explain the specific use of them. And must I use SetRow() each time or is there a shorthand way?