minor regularization of vectors and matrices

This commit is contained in:
Mathew Sutcliffe
2013-08-19 17:44:33 +01:00
parent f9f35f27d5
commit 5f267e8245
9 changed files with 72 additions and 177 deletions

View File

@@ -10,13 +10,11 @@ int BlackMiscTest::CSamplesVectorMatrix::samples()
CVector3D v1;
CVector3D v2(1, 2, 3);
qDebug() << v1 << "value:" << v2[2] << v2.length();
v2 *= v2; // v2 * v2
qDebug() << v2 << 2 * v1 << v1 *v1;
qDebug() << v2 << (2 * v1);
CMatrix3x3 m;
CMatrix3x3 mr = m;
qDebug() << m << mr;
mr.setRandom();
bool im;
CMatrix3x3 mi = mr.inverse(im);
CMatrix3x3 mid = mr * mi;