Theoric question: matrix4
Posted: Sat Apr 26, 2008 8:43 am
I was looking an irrlicht example code and i found: matrix4.
Is useful for .....? A vector in the space have 3 coordinates, why i must use a 4x4 matrix? The code is:
matrix4 mat;
mat.setRotationDegrees(rotation);
vector3df direction(1,0,0);
mat.rotateVect(direction);
where rotation is the Objectnode->getRotation().
What this code do?
Thx in advance.
Is useful for .....? A vector in the space have 3 coordinates, why i must use a 4x4 matrix? The code is:
matrix4 mat;
mat.setRotationDegrees(rotation);
vector3df direction(1,0,0);
mat.rotateVect(direction);
where rotation is the Objectnode->getRotation().
What this code do?
Thx in advance.