|
| | Matrix3x3 () |
| | No initialization constructor.
|
| |
| | Matrix3x3 (const Quaternion &q) |
| | Constructor from Quaternion.
|
| |
| | Matrix3x3 (const tf2Scalar &xx, const tf2Scalar &xy, const tf2Scalar &xz, const tf2Scalar &yx, const tf2Scalar &yy, const tf2Scalar &yz, const tf2Scalar &zx, const tf2Scalar &zy, const tf2Scalar &zz) |
| | Constructor with row major formatting.
|
| |
| | Matrix3x3 (const Matrix3x3 &other) |
| | Copy constructor.
|
| |
| Matrix3x3 & | operator= (const Matrix3x3 &other) |
| | Assignment Operator.
|
| |
| Vector3 | getColumn (int i) const |
| | Get a column of the matrix as a vector.
|
| |
| const Vector3 & | getRow (int i) const |
| | Get a row of the matrix as a vector.
|
| |
| Vector3 & | operator[] (int i) |
| | Get a mutable reference to a row of the matrix as a vector.
|
| |
| const Vector3 & | operator[] (int i) const |
| | Get a const reference to a row of the matrix as a vector.
|
| |
| Matrix3x3 & | operator*= (const Matrix3x3 &m) |
| | Multiply by the target matrix on the right.
|
| |
| void | setFromOpenGLSubMatrix (const tf2Scalar *m) |
| | Set from a carray of tf2Scalars.
|
| |
| void | setValue (const tf2Scalar &xx, const tf2Scalar &xy, const tf2Scalar &xz, const tf2Scalar &yx, const tf2Scalar &yy, const tf2Scalar &yz, const tf2Scalar &zx, const tf2Scalar &zy, const tf2Scalar &zz) |
| | Set the values of the matrix explicitly (row major)
|
| |
| void | setRotation (const Quaternion &q) |
| | Set the matrix from a quaternion.
|
| |
| void | setEulerYPR (tf2Scalar eulerZ, tf2Scalar eulerY, tf2Scalar eulerX) |
| | Set the matrix from euler angles YPR around ZYX axes.
|
| |
| void | setRPY (tf2Scalar roll, tf2Scalar pitch, tf2Scalar yaw) |
| | Set the matrix using RPY about XYZ fixed axes.
|
| |
| void | setIdentity () |
| | Set the matrix to the identity.
|
| |
| void | getOpenGLSubMatrix (tf2Scalar *m) const |
| | Fill the values of the matrix into a 9 element array.
|
| |
| void | getRotation (Quaternion &q) const |
| | Get the matrix represented as a quaternion.
|
| |
| void | getEulerYPR (tf2Scalar &yaw, tf2Scalar &pitch, tf2Scalar &roll, unsigned int solution_number=1) const |
| | Get the matrix represented as euler angles around YXZ, roundtrip with setEulerYPR.
|
| |
| void | getRPY (tf2Scalar &roll, tf2Scalar &pitch, tf2Scalar &yaw, unsigned int solution_number=1) const |
| | Get the matrix represented as roll pitch and yaw about fixed axes XYZ.
|
| |
| Matrix3x3 | scaled (const Vector3 &s) const |
| | Create a scaled copy of the matrix.
|
| |
| tf2Scalar | determinant () const |
| | Return the determinant of the matrix.
|
| |
| Matrix3x3 | adjoint () const |
| | Return the adjoint of the matrix.
|
| |
| Matrix3x3 | absolute () const |
| | Return the matrix with all values non negative.
|
| |
| Matrix3x3 | transpose () const |
| | Return the transpose of the matrix.
|
| |
| Matrix3x3 | inverse () const |
| | Return the inverse of the matrix.
|
| |
| Matrix3x3 | transposeTimes (const Matrix3x3 &m) const |
| |
| Matrix3x3 | timesTranspose (const Matrix3x3 &m) const |
| |
| tf2Scalar | tdotx (const Vector3 &v) const |
| |
| tf2Scalar | tdoty (const Vector3 &v) const |
| |
| tf2Scalar | tdotz (const Vector3 &v) const |
| |
| void | diagonalize (Matrix3x3 &rot, tf2Scalar threshold, int maxSteps) |
| | diagonalizes this matrix by the Jacobi method.
|
| |
| tf2Scalar | cofac (int r1, int c1, int r2, int c2) const |
| | Calculate the matrix cofactor.
|
| |
| void | serialize (struct Matrix3x3Data &dataOut) const |
| |
| void | serializeFloat (struct Matrix3x3FloatData &dataOut) const |
| |
| void | deSerialize (const struct Matrix3x3Data &dataIn) |
| |
| void | deSerializeFloat (const struct Matrix3x3FloatData &dataIn) |
| |
| void | deSerializeDouble (const struct Matrix3x3DoubleData &dataIn) |
| |
The Matrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with Quaternion, Transform and Vector3. Make sure to only include a pure orthogonal matrix without scaling.