mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user