Add CTransform::printMatrix

This commit is contained in:
Jack Andersen 2016-09-05 19:51:48 -10:00
parent 8ccc52d3b1
commit f4dd896004
1 changed files with 12 additions and 0 deletions

View File

@ -227,6 +227,18 @@ public:
basis[1] = basis[2].cross(basis[0]); basis[1] = basis[2].cross(basis[0]);
} }
void printMatrix() const
{
printf("%f %f %f %f\n"
"%f %f %f %f\n"
"%f %f %f %f\n"
"%f %f %f %f\n",
basis[0][0], basis[1][0], basis[2][0], origin[0],
basis[0][1], basis[1][1], basis[2][1], origin[1],
basis[0][2], basis[1][2], basis[2][2], origin[2],
0.f, 0.f, 0.f, 1.f);
}
CMatrix3f basis; CMatrix3f basis;
CVector3f origin; CVector3f origin;
}; };