mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
minor regularization of vectors and matrices
This commit is contained in:
@@ -111,7 +111,7 @@ public:
|
||||
* \brief List of values
|
||||
* \return
|
||||
*/
|
||||
const QList<double> toList() const;
|
||||
QList<double> toList() const;
|
||||
|
||||
/*!
|
||||
* \brief List of values
|
||||
@@ -164,7 +164,7 @@ public:
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Operator to support commutative multiplication
|
||||
* \brief Operator to support commutative scalar multiplication
|
||||
* \param factor
|
||||
* \param other
|
||||
* \return
|
||||
@@ -174,13 +174,6 @@ public:
|
||||
return other * factor;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Multiply with 3D vector operator *
|
||||
* \param matrix
|
||||
* \return
|
||||
*/
|
||||
template<class ImplVector> ImplVector operator*(const ImplVector matrix) const;
|
||||
|
||||
/*!
|
||||
* \brief Operator /=
|
||||
* \param factor
|
||||
@@ -279,11 +272,6 @@ public:
|
||||
this->m_matrix.setToIdentity();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Fills the matrix with random elements
|
||||
*/
|
||||
void setRandom();
|
||||
|
||||
/*!
|
||||
* \brief All values to zero
|
||||
*/
|
||||
@@ -312,13 +300,7 @@ public:
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief All values equal, if so matirx is not invertible
|
||||
* \return
|
||||
*/
|
||||
bool allValuesEqual() const;
|
||||
|
||||
/*!
|
||||
* \brief Set a dedicated value
|
||||
* \brief Set all elements the same
|
||||
* \param value
|
||||
*/
|
||||
void fill(double value) { this->m_matrix.fill(value); }
|
||||
|
||||
Reference in New Issue
Block a user