|
AGX Dynamics
2.37.2.0
|
#include <EulerAngles.h>
Public Types | |
| typedef T | Type |
Public Member Functions | |
| Matrix3x3T () | |
| Default constructor, provides an identity matrix. More... | |
| Matrix3x3T (const Matrix3x3T< T > &mat) | |
| Copy constructor. More... | |
| Matrix3x3T (T const *const ptr) | |
| Init from 12 values in row major order. More... | |
| template<typename T2 > | |
| Matrix3x3T (const AffineMatrix4x4T< T2 > &m) | |
| Init from the top left 3x3 part of an 4x4 matrix. More... | |
| Matrix3x3T (const Quat &q) | |
| Init from a quaternion. More... | |
| Matrix3x3T (const EulerAngles &e) | |
| Init from EulerAngles. More... | |
| Matrix3x3T (const SPDMatrix3x3 &m) | |
| Init from a SPDMatrix3x3. More... | |
| Matrix3x3T (T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22) | |
| Explicitly set all values. More... | |
| Matrix3x3T (const Vec3T< T > &v) | |
| Construct a Matrix34Init with a specified diagonal. More... | |
| void | add (const Matrix3x3T< T > &a, const Matrix3x3T< T > &b) |
Set the value of this matrix to the result of the sum between the matrix m and the matrix b. More... | |
| T | determinant () const |
| Calculate the determinant. More... | |
| T | dotColumn (const Vec3T< T > &vec, size_t col) const |
| Vec3T< T > | getDiagonal () const |
| Get the diagonal elements. More... | |
| Matrix3x3T< T > | inverse () const |
| Calculate the inverse. More... | |
| bool | isDiagonal () const |
| Test if matrix is diagonal. More... | |
| bool | isIdentity () const |
| bool | isNaN () const |
| bool | isValid () const |
| State queries. More... | |
| void | makeIdentity () |
| Set all values. More... | |
| void | mult (const Matrix3x3T< T > &m, const T &r) |
Set the value of this matrix to the result of the product between the matrix m and the scalar r. More... | |
| void | mult (const Matrix3x3T< T > &lhs, const Matrix3x3T< T > &rhs) |
Set the value of this matrix to the result of the multiplication between the matrix lhs m and the matrix rhs. More... | |
| operator AffineMatrix4x4T< T > () const | |
| Cast operator. More... | |
| bool | operator!= (const Matrix3x3T< T > &m) const |
| T & | operator() (size_t row, size_t col) |
| Element accessors. More... | |
| T | operator() (size_t row, size_t col) const |
| Matrix3x3T< T > | operator* (const T &r) const |
| Vec3T< T > | operator* (const Vec3T< T > &v) const |
| Matrix3x3T< T > | operator* (const Matrix3x3T< T > &m) const |
| void | operator*= (const T &r) |
Set the value of the matrix to the result of the product between this matrix and the scalar r. More... | |
| Matrix3x3T< T > | operator+ (const Matrix3x3T< T > &m) const |
| void | operator+= (const Matrix3x3T< T > &m) |
Set the value of the matrix to the result of the sum between this matrix and the matrix m. More... | |
| Matrix3x3T< T > | operator- (const Matrix3x3T< T > &m) const |
| void | operator-= (const Matrix3x3T< T > &m) |
Set the value of the matrix to the result of the subtraction between this matrix and the matrix m. More... | |
| Matrix3x3T< T > | operator/ (const T &r) const |
| void | operator/= (const T &d) |
Set the value of the matrix to the quotient of the division between this matrix and the divisor r. More... | |
| Matrix3x3T< T > & | operator= (const Matrix3x3T< T > &rhs) |
| bool | operator== (const Matrix3x3T< T > &m) const |
| Equality test (no threshold, must be exact same bits). More... | |
| Vec3T< T > | postMult (const Vec3T< T > &v) const |
| void | postMult (const Matrix3x3T< T > &m) |
Set the value of this matrix to the result of the product this * m. More... | |
| Vec3T< T > | preMult (const Vec3T< T > &v) const |
| void | preMult (const Matrix3x3T< T > &m) |
Set the value of this matrix to the result of the product m * this. More... | |
| T * | ptr () |
| Access internal buffer. More... | |
| const T * | ptr () const |
| void | set (T const *const ptr) |
| void | set (const Vec3T< T > &diagonal) |
| Set the diagonal values of the Matrix and the rest of the elements to zero. More... | |
| void | set (T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22) |
| Set all elements of the matrix. More... | |
| void | set (const Quat &q) |
| Set the rotation from a specified quaternion. More... | |
| void | set (const EulerAngles &e) |
| Set the rotation from a specified EulerAngles. More... | |
| void | sub (const Matrix3x3T< T > &a, const Matrix3x3T< T > &b) |
Set the value of this matrix to the result of the subtraction between the matrix m and the matrix b. More... | |
| Matrix3x3T< T > | transpose () const |
| Calculate the transpose. More... | |
Static Public Member Functions | |
| static Matrix3x3T< T > | crossMatrix (const Vec3T< T > &v) |
| Create a cross product matrix. More... | |
Protected Attributes | |
| T | m_data [3][4] |
Definition at line 31 of file EulerAngles.h.
| typedef T agx::Matrix3x3T< T >::Type |
Definition at line 35 of file Matrix3x3.h.
| agx::Matrix3x3T< T >::Matrix3x3T | ( | ) |
Default constructor, provides an identity matrix.
Definition at line 315 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::crossMatrix(), agx::Matrix3x3T< Real >::isIdentity(), and agx::Matrix3x3T< Real >::transpose().
| agx::Matrix3x3T< T >::Matrix3x3T | ( | const Matrix3x3T< T > & | mat | ) |
Copy constructor.
Definition at line 321 of file Matrix3x3.h.
|
explicit |
Init from 12 values in row major order.
Each row includes a forth element as padding.
Definition at line 327 of file Matrix3x3.h.
|
explicit |
Init from the top left 3x3 part of an 4x4 matrix.
Definition at line 333 of file Matrix3x3.h.
|
explicit |
Init from a quaternion.
Definition at line 352 of file Matrix3x3.h.
|
explicit |
Init from EulerAngles.
Definition at line 358 of file Matrix3x3.h.
|
explicit |
Init from a SPDMatrix3x3.
| agx::Matrix3x3T< T >::Matrix3x3T | ( | T | a00, |
| T | a01, | ||
| T | a02, | ||
| T | a10, | ||
| T | a11, | ||
| T | a12, | ||
| T | a20, | ||
| T | a21, | ||
| T | a22 | ||
| ) |
Explicitly set all values.
Definition at line 365 of file Matrix3x3.h.
|
explicit |
Construct a Matrix34Init with a specified diagonal.
Effectively specifying a scaling matrix.
Definition at line 384 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::add | ( | const Matrix3x3T< T > & | a, |
| const Matrix3x3T< T > & | b | ||
| ) |
Set the value of this matrix to the result of the sum between the matrix m and the matrix b.
Definition at line 591 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::operator+=().
|
static |
Create a cross product matrix.
Definition at line 544 of file Matrix3x3.h.
| T agx::Matrix3x3T< T >::determinant | ( | ) | const |
Calculate the determinant.
Definition at line 552 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::inverse(), and agx::operator<<().
|
inline |
vec and the col :th column of this matrix Definition at line 784 of file Matrix3x3.h.
| Vec3T< T > agx::Matrix3x3T< T >::getDiagonal | ( | ) | const |
Get the diagonal elements.
Definition at line 538 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::inverse | ( | ) | const |
Calculate the inverse.
Definition at line 848 of file Matrix3x3.h.
| bool agx::Matrix3x3T< T >::isDiagonal | ( | ) | const |
Test if matrix is diagonal.
Definition at line 560 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::inverse().
| bool agx::Matrix3x3T< T >::isIdentity | ( | ) | const |
Definition at line 460 of file Matrix3x3.h.
| bool agx::Matrix3x3T< T >::isNaN | ( | ) | const |
Definition at line 452 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::isValid().
| bool agx::Matrix3x3T< T >::isValid | ( | ) | const |
State queries.
Definition at line 446 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::makeIdentity | ( | ) |
Set all values.
Definition at line 466 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::Matrix3x3T().
| void agx::Matrix3x3T< T >::mult | ( | const Matrix3x3T< T > & | m, |
| const T & | r | ||
| ) |
Set the value of this matrix to the result of the product between the matrix m and the scalar r.
Definition at line 577 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::operator*=(), and agx::Matrix3x3T< Real >::operator/=().
| void agx::Matrix3x3T< T >::mult | ( | const Matrix3x3T< T > & | lhs, |
| const Matrix3x3T< T > & | rhs | ||
| ) |
Set the value of this matrix to the result of the multiplication between the matrix lhs m and the matrix rhs.
Definition at line 759 of file Matrix3x3.h.
|
inline |
| bool agx::Matrix3x3T< T >::operator!= | ( | const Matrix3x3T< T > & | m | ) | const |
Definition at line 427 of file Matrix3x3.h.
| T & agx::Matrix3x3T< T >::operator() | ( | size_t | row, |
| size_t | col | ||
| ) |
Element accessors.
Definition at line 433 of file Matrix3x3.h.
| T agx::Matrix3x3T< T >::operator() | ( | size_t | row, |
| size_t | col | ||
| ) | const |
Definition at line 439 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::operator* | ( | const T & | r | ) | const |
r Definition at line 644 of file Matrix3x3.h.
| Vec3T< T > agx::Matrix3x3T< T >::operator* | ( | const Vec3T< T > & | v | ) | const |
v Definition at line 805 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::operator* | ( | const Matrix3x3T< T > & | m | ) | const |
| m |
Definition at line 791 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::operator*= | ( | const T & | r | ) |
Set the value of the matrix to the result of the product between this matrix and the scalar r.
Definition at line 620 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::operator+ | ( | const Matrix3x3T< T > & | m | ) | const |
m Definition at line 660 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::operator+= | ( | const Matrix3x3T< T > & | m | ) |
Set the value of the matrix to the result of the sum between this matrix and the matrix m.
Definition at line 632 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::operator- | ( | const Matrix3x3T< T > & | m | ) | const |
m Definition at line 668 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::operator-= | ( | const Matrix3x3T< T > & | m | ) |
Set the value of the matrix to the result of the subtraction between this matrix and the matrix m.
Definition at line 638 of file Matrix3x3.h.
| Matrix3x3T< T > agx::Matrix3x3T< T >::operator/ | ( | const T & | r | ) | const |
r Definition at line 652 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::operator/= | ( | const T & | d | ) |
Set the value of the matrix to the quotient of the division between this matrix and the divisor r.
Definition at line 626 of file Matrix3x3.h.
| Matrix3x3T< T > & agx::Matrix3x3T< T >::operator= | ( | const Matrix3x3T< T > & | rhs | ) |
Definition at line 474 of file Matrix3x3.h.
| bool agx::Matrix3x3T< T >::operator== | ( | const Matrix3x3T< T > & | m | ) | const |
Equality test (no threshold, must be exact same bits).
Definition at line 413 of file Matrix3x3.h.
| Vec3T< T > agx::Matrix3x3T< T >::postMult | ( | const Vec3T< T > & | v | ) | const |
v and this matrix as M * v Definition at line 676 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::mult(), and agx::Matrix3x3T< Real >::operator*().
| void agx::Matrix3x3T< T >::postMult | ( | const Matrix3x3T< T > & | m | ) |
Set the value of this matrix to the result of the product this * m.
Definition at line 725 of file Matrix3x3.h.
| Vec3T< T > agx::Matrix3x3T< T >::preMult | ( | const Vec3T< T > & | v | ) | const |
v and this matrix as v * M Definition at line 684 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::mult().
| void agx::Matrix3x3T< T >::preMult | ( | const Matrix3x3T< T > & | m | ) |
Set the value of this matrix to the result of the product m * this.
Definition at line 692 of file Matrix3x3.h.
| T * agx::Matrix3x3T< T >::ptr | ( | ) |
Access internal buffer.
Definition at line 526 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::Matrix3x3T(), and agx::mult().
| const T * agx::Matrix3x3T< T >::ptr | ( | ) | const |
Definition at line 532 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::set | ( | T const *const | ptr | ) |
Definition at line 481 of file Matrix3x3.h.
Referenced by agx::VirtualConstraintInertia::Transformed::reset().
| void agx::Matrix3x3T< T >::set | ( | const Vec3T< T > & | diagonal | ) |
Set the diagonal values of the Matrix and the rest of the elements to zero.
| diagonal | - The diagonal value of the matrix |
Definition at line 512 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::set | ( | T | a00, |
| T | a01, | ||
| T | a02, | ||
| T | a10, | ||
| T | a11, | ||
| T | a12, | ||
| T | a20, | ||
| T | a21, | ||
| T | a22 | ||
| ) |
Set all elements of the matrix.
Definition at line 496 of file Matrix3x3.h.
| void agx::Matrix3x3T< T >::set | ( | const Quat & | q | ) |
Set the rotation from a specified quaternion.
| q | - Set the matrix from the quaternion definition |
| void agx::Matrix3x3T< T >::set | ( | const EulerAngles & | e | ) |
Set the rotation from a specified EulerAngles.
| e | - Set the matrix from the EulerAngles definition |
| void agx::Matrix3x3T< T >::sub | ( | const Matrix3x3T< T > & | a, |
| const Matrix3x3T< T > & | b | ||
| ) |
Set the value of this matrix to the result of the subtraction between the matrix m and the matrix b.
Definition at line 605 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::operator-=().
| Matrix3x3T< T > agx::Matrix3x3T< T >::transpose | ( | ) | const |
Calculate the transpose.
Definition at line 569 of file Matrix3x3.h.
|
protected |
Definition at line 283 of file Matrix3x3.h.
Referenced by agx::Matrix3x3T< Real >::add(), agx::Matrix3x3T< Real >::determinant(), agx::Matrix3x3T< Real >::dotColumn(), agx::Matrix3x3T< Real >::getDiagonal(), agx::Matrix3x3T< Real >::inverse(), agx::Matrix3x3T< Real >::isDiagonal(), agx::Matrix3x3T< Real >::isNaN(), agx::Matrix3x3T< Real >::Matrix3x3T(), agx::Matrix3x3T< Real >::mult(), agx::Matrix3x3T< T >::operator AffineMatrix4x4T< T >(), agx::Matrix3x3T< Real >::operator()(), agx::operator<<(), agx::Matrix3x3T< Real >::operator==(), agx::Matrix3x3T< Real >::postMult(), agx::Matrix3x3T< Real >::preMult(), agx::Matrix3x3T< Real >::ptr(), agx::Matrix3x3T< Real >::set(), agx::Matrix3x3T< Real >::sub(), and agx::Matrix3x3T< Real >::transpose().