Had to withdraw 3Vector3D, since they store values internally as float (idiotic design). Hence qreal will be dropped. Started with Unit tests.

This commit is contained in:
Klaus Basan
2013-04-20 17:46:46 +02:00
parent 7b0468d300
commit f4affe55ef
28 changed files with 446 additions and 183 deletions

View File

@@ -28,7 +28,7 @@ public:
* \brief init with value
* \param fillValue
*/
CMatrix3x3(qreal fillValue) : CMatrixBase(fillValue) {}
CMatrix3x3(double fillValue) : CMatrixBase(fillValue) {}
/*!
* \brief Copy constructor
@@ -40,7 +40,7 @@ public:
* \brief Calculates the determinant of the matrix
* \return
*/
qreal determinant() const;
double determinant() const;
/*!
* \brief Calculate the inverse
@@ -88,7 +88,8 @@ public:
* \param vector
* \return
*/
CVector3D operator *(const CVector3D &vector) const {
CVector3D operator *(const CVector3D &vector) const
{
CVector3D v(vector);
v.matrixMultiplication(*this);
return v;