|
AGX Dynamics
2.37.2.0
|
Matrix class for affine transformations. More...
#include <EulerAngles.h>
Inheritance diagram for agx::Matrix4x4T< T >:Public Types | |
| typedef T | Type |
Public Member Functions | |
| Matrix4x4T () | |
| Creates a new matrix, initialized to be an identity matrix. More... | |
| template<typename T2 > | |
| Matrix4x4T (const Matrix4x4T< T2 > &mat) | |
| Copy constructor. More... | |
| Matrix4x4T (T const *const ptr) | |
| Create a matrix from a vector of 16 reals. More... | |
| Matrix4x4T (const QuatT< T > &rotation, const Vec3T< T > &translation=Vec3T< T >()) | |
| Create a matrix from a quaternion. More... | |
| Matrix4x4T (const EulerAngles &rotation, const Vec3T< T > &translation=Vec3T< T >()) | |
| Create a matrix from Euler angles. More... | |
| Matrix4x4T (const OrthoMatrix3x3 &rotation, const Vec3T< T > &translation=Vec3T< T >()) | |
| Create a matrix from a 3x3 rotation matrix. More... | |
| Matrix4x4T (T a00, T a01, T a02, T a03, T a10, T a11, T a12, T a13, T a20, T a21, T a22, T a23, T a30, T a31, T a32, T a33) | |
| Create a matrix from 16 T scalars. More... | |
| ~Matrix4x4T ()=default | |
| Destructor. More... | |
| Matrix4x4T< T > & | addTranslate (const Vec3T< T > &t) |
| Matrix4x4T< T > & | addTranslate (T tx, T ty, T tz) |
| void | get (QuatT< T > &q) const |
| void | get (OrthoMatrix3x3 &m3) const |
| void | get (EulerAngles &e) const |
| agx::Vec4T< T > | getCol (size_t col) const |
| QuatT< T > | getRotate () const |
| agx::Vec4T< T > | getRow (size_t row) const |
| Vec3T< T > | getTranslate () const |
| Matrix4x4T< T > | inverse () const |
| Matrix inverse. More... | |
| bool | isFinite () const |
| bool | isIdentity () const |
| bool | isNaN () const |
| bool | isRigidTransformation () const |
| void | mult (const Matrix4x4T< T > &, const Matrix4x4T< T > &) |
| void | multSSE (const Matrix4x4T< T > &lhs, const Matrix4x4T< T > &rhs) |
| template<> | |
| void | multSSE (const Matrix4x4T< Real32 > &lhs, const Matrix4x4T< Real32 > &rhs) |
| template<> | |
| void | multSSE (const Matrix4x4T< Real64 > &lhs, const Matrix4x4T< Real64 > &rhs) |
| bool | operator!= (const Matrix4x4T< T > &m) const |
| T & | operator() (size_t row, size_t col) |
| T | operator() (size_t row, size_t col) const |
| Vec3T< T > | operator* (const Vec3T< T > &v) const |
| Vec4T< T > | operator* (const Vec4T< T > &v) const |
| Matrix4x4T< T > | operator* (const Matrix4x4T< T > &m) const |
| void | operator*= (const Matrix4x4T< T > &other) |
| Matrix4x4T< T > & | operator= (const Matrix4x4T< T > &rhs) |
| bool | operator== (const Matrix4x4T< T > &m) const |
| Vec3T< T > | postMult (const Vec3T< T > &v) const |
| Vec4T< T > | postMult (const Vec4T< T > &v) const |
| void | postMult (const Matrix4x4T< T > &) |
| Matrix4x4T< T > & | postMultTranslate (const Vec3T< T > &v) |
| Vec3T< T > | preMult (const Vec3T< T > &v) const |
| Vec4T< T > | preMult (const Vec4T< T > &v) const |
| void | preMult (const Matrix4x4T< T > &) |
| Matrix4x4T< T > & | preMultTranslate (const Vec3T< T > &v) |
| T * | ptr () |
| const T * | ptr () const |
| Matrix4x4T< T > & | set (T const *const ptr) |
| Matrix4x4T< T > & | set (T a00, T a01, T a02, T a03, T a10, T a11, T a12, T a13, T a20, T a21, T a22, T a23, T a30, T a31, T a32, T a33) |
| Matrix4x4T< T > & | set (const QuatT< T > &q) |
| Matrix4x4T< T > & | set (const OrthoMatrix3x3 &m3) |
| Matrix4x4T< T > & | set (const EulerAngles &e) |
| void | setCol (size_t col, const agx::Vec4T< T > &vec) |
| Matrix4x4T< T > & | setIdentity () |
| Matrix4x4T< T > & | setRotate (const QuatT< T > &q) |
| Matrix4x4T< T > & | setRotate (const OrthoMatrix3x3 &m3) |
| Matrix4x4T< T > & | setRotate (const EulerAngles &euler) |
| Matrix4x4T< T > & | setRotate (const Vec3T< T > &from, const Vec3T< T > &to) |
| Matrix4x4T< T > & | setRotate (T angle, const Vec3T< T > &axis) |
| Matrix4x4T< T > & | setRotate (T angle, T x, T y, T z) |
| Matrix4x4T< T > & | setRotate (T angle1, const Vec3T< T > &axis1, T angle2, const Vec3T< T > &axis2, T angle3, const Vec3T< T > &axis3) |
| void | setRow (size_t row, const agx::Vec4T< T > &vec) |
| Set the row of the matrix,. More... | |
| Matrix4x4T< T > & | setTranslate (const Vec3T< T > &t) |
| Matrix4x4T< T > & | setTranslate (T tx, T ty, T tz) |
| Vec3T< T > & | transform3x3 (const Vec3T< T > &vIn, Vec3T< T > &vOut) const |
| Vec3T< T > | transform3x3 (const Vec3T< T > &vIn) const |
| Vec3T< T > & | transform3x3Inv (const Vec3T< T > &vIn, Vec3T< T > &vOut) const |
| Vec3T< T > | transform3x3Inv (const Vec3T< T > &vIn) const |
| Matrix4x4T< T > | transpose () const |
| bool | valid () const |
Static Public Member Functions | |
| static Matrix4x4T< T > | crossMatrix (const Vec3T< T > &vec) |
| Generates a new matrix of a specific type. More... | |
| static Matrix4x4T< T > | rotate (const Vec3T< T > &from, const Vec3T< T > &to) |
| static Matrix4x4T< T > | rotate (T angle, T x, T y, T z) |
| static Matrix4x4T< T > | rotate (T angle, const Vec3T< T > &axis) |
| static Matrix4x4T< T > | rotate (T angle1, const Vec3T< T > &axis1, T angle2, const Vec3T< T > &axis2, T angle3, const Vec3T< T > &axis3) |
| static Matrix4x4T< T > | translate (const Vec3T< T > &dv) |
| static Matrix4x4T< T > | translate (T x, T y, T z) |
Protected Member Functions | |
| bool | invert (const Matrix4x4T< T > &mat) |
Static Protected Member Functions | |
| static void | multSSE32Implementation (Real32 *out, const Real32 *lhs, const Real32 *rhs) |
| static void | multSSE64Implementation (Real64 *out, const Real64 *lhs, const Real64 *rhs) |
Protected Attributes | |
| T | m_data [4][4] |
Matrix class for affine transformations.
Translations are stored in the last row. The last column will be assumed to be [0 0 0 1]' in all operations, even if it is set to something else.
Definition at line 34 of file EulerAngles.h.
| typedef T agx::Matrix4x4T< T >::Type |
Definition at line 58 of file Matrix4x4.h.
| agx::Matrix4x4T< T >::Matrix4x4T | ( | ) |
Creates a new matrix, initialized to be an identity matrix.
Definition at line 330 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setIdentity().
|
explicit |
Copy constructor.
Definition at line 336 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
|
explicit |
Create a matrix from a vector of 16 reals.
Definition at line 388 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::ptr().
| agx::Matrix4x4T< T >::Matrix4x4T | ( | const QuatT< T > & | rotation, |
| const Vec3T< T > & | translation = Vec3T<T>() |
||
| ) |
Create a matrix from a quaternion.
Definition at line 395 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setIdentity(), and agx::Matrix4x4T< T >::setTranslate().
| agx::Matrix4x4T< T >::Matrix4x4T | ( | const EulerAngles & | rotation, |
| const Vec3T< T > & | translation = Vec3T< T >() |
||
| ) |
Create a matrix from Euler angles.
| agx::Matrix4x4T< T >::Matrix4x4T | ( | const OrthoMatrix3x3 & | rotation, |
| const Vec3T< T > & | translation = Vec3T<T>() |
||
| ) |
Create a matrix from a 3x3 rotation matrix.
Definition at line 403 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setIdentity(), and agx::Matrix4x4T< T >::setTranslate().
| agx::Matrix4x4T< T >::Matrix4x4T | ( | T | a00, |
| T | a01, | ||
| T | a02, | ||
| T | a03, | ||
| T | a10, | ||
| T | a11, | ||
| T | a12, | ||
| T | a13, | ||
| T | a20, | ||
| T | a21, | ||
| T | a22, | ||
| T | a23, | ||
| T | a30, | ||
| T | a31, | ||
| T | a32, | ||
| T | a33 | ||
| ) |
Create a matrix from 16 T scalars.
Definition at line 360 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
|
default |
Destructor.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::addTranslate | ( | const Vec3T< T > & | t | ) |
Definition at line 624 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::addTranslate | ( | T | tx, |
| T | ty, | ||
| T | tz | ||
| ) |
Definition at line 634 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
|
inlinestatic |
Generates a new matrix of a specific type.
Definition at line 708 of file Matrix4x4.h.
References agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
Referenced by agx::Matrix4x4T< T >::getCol().
| void agx::Matrix4x4T< T >::get | ( | QuatT< T > & | q | ) | const |
Referenced by agx::Frame::getLocalMatrix(), agxGL::Camera::getProjectionMatrix(), and agxGL::Camera::getViewMatrix().
| void agx::Matrix4x4T< T >::get | ( | OrthoMatrix3x3 & | m3 | ) | const |
Definition at line 671 of file Matrix4x4.h.
| void agx::Matrix4x4T< T >::get | ( | EulerAngles & | e | ) | const |
|
inline |
Definition at line 195 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::addTranslate(), agx::Matrix4x4T< T >::crossMatrix(), agx::Matrix4x4T< T >::getRotate(), agx::Matrix4x4T< T >::getTranslate(), agx::Matrix4x4T< T >::invert(), agx::Matrix4x4T< T >::m_data, agx::Matrix4x4T< T >::mult(), agx::Matrix4x4T< T >::multSSE(), agx::Matrix4x4T< T >::multSSE32Implementation(), agx::Matrix4x4T< T >::multSSE64Implementation(), agx::Matrix4x4T< T >::operator!=(), agx::Matrix4x4T< T >::operator()(), agx::Matrix4x4T< T >::operator*(), agx::Matrix4x4T< T >::operator*=(), agx::Matrix4x4T< T >::operator=(), agx::Matrix4x4T< T >::operator==(), agxStream::out(), agx::Matrix4x4T< T >::postMult(), agx::Matrix4x4T< T >::postMultTranslate(), agx::Matrix4x4T< T >::preMult(), agx::Matrix4x4T< T >::preMultTranslate(), agx::Matrix4x4T< T >::ptr(), agx::Matrix4x4T< T >::rotate(), agx::Matrix4x4T< T >::setIdentity(), agx::Matrix4x4T< T >::setRotate(), agx::Matrix4x4T< T >::setTranslate(), agx::Matrix4x4T< T >::transform3x3(), agx::Matrix4x4T< T >::transform3x3Inv(), and agx::Matrix4x4T< T >::translate().
| QuatT< T > agx::Matrix4x4T< T >::getRotate | ( | ) | const |
Definition at line 663 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::getCol().
|
inline |
Definition at line 185 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Vec3T< T > agx::Matrix4x4T< T >::getTranslate | ( | ) | const |
Definition at line 656 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agxCollide::Sphere::calculateBound(), and agx::Matrix4x4T< T >::getCol().
|
inline |
Matrix inverse.
Definition at line 1056 of file Matrix4x4.h.
Referenced by agx::inverse< Matrix4x4d >(), and agx::inverse< Matrix4x4f >().
|
protected |
Referenced by agx::Matrix4x4T< T >::getCol().
| bool agx::Matrix4x4T< T >::isFinite | ( | ) | const |
Definition at line 438 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| bool agx::Matrix4x4T< T >::isIdentity | ( | ) | const |
Definition at line 451 of file Matrix4x4.h.
| bool agx::Matrix4x4T< T >::isNaN | ( | ) | const |
Definition at line 424 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::valid().
| bool agx::Matrix4x4T< T >::isRigidTransformation | ( | ) | const |
Definition at line 457 of file Matrix4x4.h.
References agx::equivalent(), and agx::Matrix4x4T< T >::m_data.
| void agx::Matrix4x4T< T >::mult | ( | const Matrix4x4T< T > & | lhs, |
| const Matrix4x4T< T > & | rhs | ||
| ) |
Definition at line 774 of file Matrix4x4.h.
References AGX_MATRIX4X4_INNER_PRODUCT, agx::Matrix4x4T< T >::m_data, agx::Matrix4x4T< T >::postMult(), and agx::Matrix4x4T< T >::preMult().
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::multSSE(), and agx::AffineMatrix4x4T< Real >::operator*().
| void agx::Matrix4x4T< T >::multSSE | ( | const Matrix4x4T< T > & | lhs, |
| const Matrix4x4T< T > & | rhs | ||
| ) |
Referenced by agx::Matrix4x4T< T >::getCol().
| void agx::Matrix4x4T< Real32 >::multSSE | ( | const Matrix4x4T< Real32 > & | lhs, |
| const Matrix4x4T< Real32 > & | rhs | ||
| ) |
Definition at line 1200 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::mult(), agx::Matrix4x4T< T >::multSSE32Implementation(), and agx::Matrix4x4T< T >::ptr().
| void agx::Matrix4x4T< Real64 >::multSSE | ( | const Matrix4x4T< Real64 > & | lhs, |
| const Matrix4x4T< Real64 > & | rhs | ||
| ) |
Definition at line 1210 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::mult(), agx::Matrix4x4T< T >::multSSE64Implementation(), and agx::Matrix4x4T< T >::ptr().
|
staticprotected |
Definition at line 1120 of file Matrix4x4.h.
References AGX_FORCE_INLINE, agxAbort1, agxAssert, agx::isAligned(), and agx::Matrix4x4T< T >::multSSE64Implementation().
Referenced by agx::equivalent(), agx::Matrix4x4T< T >::getCol(), and agx::Matrix4x4T< T >::multSSE().
|
staticprotected |
Definition at line 1192 of file Matrix4x4.h.
References agxAbort1.
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::multSSE(), and agx::Matrix4x4T< T >::multSSE32Implementation().
| bool agx::Matrix4x4T< T >::operator!= | ( | const Matrix4x4T< T > & | m | ) | const |
Definition at line 881 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| T & agx::Matrix4x4T< T >::operator() | ( | size_t | row, |
| size_t | col | ||
| ) |
Definition at line 888 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| T agx::Matrix4x4T< T >::operator() | ( | size_t | row, |
| size_t | col | ||
| ) | const |
Definition at line 894 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Vec3T< T > agx::Matrix4x4T< T >::operator* | ( | const Vec3T< T > & | v | ) | const |
Definition at line 928 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::postMult().
Referenced by agx::Matrix4x4T< T >::getCol().
| Vec4T< T > agx::Matrix4x4T< T >::operator* | ( | const Vec4T< T > & | v | ) | const |
Definition at line 934 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::postMult().
| Matrix4x4T< T > agx::Matrix4x4T< T >::operator* | ( | const Matrix4x4T< T > & | m | ) | const |
Definition at line 920 of file Matrix4x4.h.
| void agx::Matrix4x4T< T >::operator*= | ( | const Matrix4x4T< T > & | other | ) |
Definition at line 909 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::postMult().
Referenced by agx::Matrix4x4T< T >::getCol().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::operator= | ( | const Matrix4x4T< T > & | rhs | ) |
Definition at line 900 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::getCol().
| bool agx::Matrix4x4T< T >::operator== | ( | const Matrix4x4T< T > & | m | ) | const |
Definition at line 874 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| Vec3T< T > agx::Matrix4x4T< T >::postMult | ( | const Vec3T< T > & | v | ) | const |
Definition at line 1007 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::mult(), agx::Matrix4x4T< T >::operator*(), and agx::Matrix4x4T< T >::operator*=().
| Vec4T< T > agx::Matrix4x4T< T >::postMult | ( | const Vec4T< T > & | v | ) | const |
Definition at line 1025 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec4T< T >::w(), agx::Vec4T< T >::x(), agx::Vec4T< T >::y(), and agx::Vec4T< T >::z().
| void agx::Matrix4x4T< T >::postMult | ( | const Matrix4x4T< T > & | other | ) |
Definition at line 831 of file Matrix4x4.h.
References AGX_MATRIX4X4_INNER_PRODUCT, and AGX_MATRIX4X4_SET_ROW.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::postMultTranslate | ( | const Vec3T< T > & | v | ) |
Definition at line 861 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| Vec3T< T > agx::Matrix4x4T< T >::preMult | ( | const Vec3T< T > & | v | ) | const |
Definition at line 1016 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
Referenced by agx::Matrix4x4T< T >::getCol(), and agx::Matrix4x4T< T >::mult().
| Vec4T< T > agx::Matrix4x4T< T >::preMult | ( | const Vec4T< T > & | v | ) | const |
Definition at line 1035 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec4T< T >::w(), agx::Vec4T< T >::x(), agx::Vec4T< T >::y(), and agx::Vec4T< T >::z().
| void agx::Matrix4x4T< T >::preMult | ( | const Matrix4x4T< T > & | other | ) |
Definition at line 813 of file Matrix4x4.h.
References AGX_MATRIX4X4_INNER_PRODUCT, and agx::Matrix4x4T< T >::m_data.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::preMultTranslate | ( | const Vec3T< T > & | v | ) |
Definition at line 848 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol().
| T * agx::Matrix4x4T< T >::ptr | ( | ) |
Definition at line 688 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::Matrix4x4T(), agx::AffineMatrix4x4T< Real >::multSSE(), agx::Matrix4x4T< T >::multSSE(), and agx::AffineMatrix4x4T< Real >::operator=().
| const T * agx::Matrix4x4T< T >::ptr | ( | ) | const |
Definition at line 694 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
|
inlinestatic |
Definition at line 735 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::getCol().
|
inlinestatic |
Definition at line 743 of file Matrix4x4.h.
|
static |
Definition at line 751 of file Matrix4x4.h.
|
static |
Definition at line 759 of file Matrix4x4.h.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::set | ( | T const *const | ptr | ) |
They all return a reference to the updated matrix, enabling chained commands. E.g: matrix.setRotate(q).setTranslate(pos)
Definition at line 487 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::set | ( | T | a00, |
| T | a01, | ||
| T | a02, | ||
| T | a03, | ||
| T | a10, | ||
| T | a11, | ||
| T | a12, | ||
| T | a13, | ||
| T | a20, | ||
| T | a21, | ||
| T | a22, | ||
| T | a23, | ||
| T | a30, | ||
| T | a31, | ||
| T | a32, | ||
| T | a33 | ||
| ) |
Definition at line 495 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::set | ( | const QuatT< T > & | q | ) |
Definition at line 524 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::Matrix4x4T< T >::setTranslate().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::set | ( | const OrthoMatrix3x3 & | m3 | ) |
Definition at line 534 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::Matrix4x4T< T >::setTranslate().
| Matrix4x4T<T>& agx::Matrix4x4T< T >::set | ( | const EulerAngles & | e | ) |
|
inline |
Definition at line 178 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setIdentity | ( | ) |
Definition at line 645 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::getCol(), and agx::Matrix4x4T< T >::Matrix4x4T().
| Matrix4x4T<T>& agx::Matrix4x4T< T >::setRotate | ( | const QuatT< T > & | q | ) |
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::set(), and agx::Matrix4x4T< T >::setRotate().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setRotate | ( | const OrthoMatrix3x3 & | m3 | ) |
Definition at line 545 of file Matrix4x4.h.
| Matrix4x4T<T>& agx::Matrix4x4T< T >::setRotate | ( | const EulerAngles & | euler | ) |
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setRotate | ( | const Vec3T< T > & | from, |
| const Vec3T< T > & | to | ||
| ) |
Definition at line 564 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::QuatT< T >::setRotate().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setRotate | ( | T | angle, |
| const Vec3T< T > & | axis | ||
| ) |
Definition at line 573 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::QuatT< T >::setRotate().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setRotate | ( | T | angle, |
| T | x, | ||
| T | y, | ||
| T | z | ||
| ) |
Definition at line 582 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::QuatT< T >::setRotate().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setRotate | ( | T | angle1, |
| const Vec3T< T > & | axis1, | ||
| T | angle2, | ||
| const Vec3T< T > & | axis2, | ||
| T | angle3, | ||
| const Vec3T< T > & | axis3 | ||
| ) |
Definition at line 591 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::setRotate(), and agx::QuatT< T >::setRotate().
|
inline |
Set the row of the matrix,.
| row | must be between [0..3] |
| vec | - value of the row |
Definition at line 171 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setTranslate | ( | const Vec3T< T > & | t | ) |
Definition at line 604 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::Matrix4x4T(), and agx::Matrix4x4T< T >::set().
| Matrix4x4T< T > & agx::Matrix4x4T< T >::setTranslate | ( | T | tx, |
| T | ty, | ||
| T | tz | ||
| ) |
Definition at line 614 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| Vec3T< T > & agx::Matrix4x4T< T >::transform3x3 | ( | const Vec3T< T > & | vIn, |
| Vec3T< T > & | vOut | ||
| ) | const |
Definition at line 971 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec3T< T >::set(), agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
Referenced by agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::transform3x3(), and agx::Frame::transformVectorToWorld().
| Vec3T< T > agx::Matrix4x4T< T >::transform3x3 | ( | const Vec3T< T > & | vIn | ) | const |
Definition at line 991 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::transform3x3().
| Vec3T< T > & agx::Matrix4x4T< T >::transform3x3Inv | ( | const Vec3T< T > & | vIn, |
| Vec3T< T > & | vOut | ||
| ) | const |
Definition at line 981 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data, agx::Vec3T< T >::set(), agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
Referenced by agx::Matrix4x4T< T >::getCol(), and agx::Matrix4x4T< T >::transform3x3Inv().
| Vec3T< T > agx::Matrix4x4T< T >::transform3x3Inv | ( | const Vec3T< T > & | vIn | ) | const |
Definition at line 999 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::transform3x3Inv().
|
inlinestatic |
Definition at line 719 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::getCol().
|
inlinestatic |
Definition at line 727 of file Matrix4x4.h.
|
inline |
Definition at line 1046 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::m_data.
| bool agx::Matrix4x4T< T >::valid | ( | ) | const |
Definition at line 417 of file Matrix4x4.h.
References agx::Matrix4x4T< T >::isNaN().
|
protected |
Definition at line 305 of file Matrix4x4.h.
Referenced by agx::Matrix4x4T< T >::addTranslate(), agx::Matrix4x4T< T >::getCol(), agx::Matrix4x4T< T >::getRow(), agx::Matrix4x4T< T >::getTranslate(), agx::AffineMatrix4x4T< Real >::invert(), agx::Matrix4x4T< T >::isFinite(), agx::Matrix4x4T< T >::isNaN(), agx::Matrix4x4T< T >::isRigidTransformation(), agx::Matrix4x4T< T >::Matrix4x4T(), agx::Matrix4x4T< T >::mult(), agx::AffineMatrix4x4T< Real >::mult(), agx::Matrix4x4T< T >::operator!=(), agx::AffineMatrix4x4T< Real >::operator!=(), agx::Matrix4x4T< T >::operator()(), agx::Matrix4x4T< T >::operator==(), agx::AffineMatrix4x4T< Real >::operator==(), agx::Matrix4x4T< T >::postMult(), agx::AffineMatrix4x4T< Real >::postMult(), agx::Matrix4x4T< T >::postMultTranslate(), agx::Matrix4x4T< T >::preMult(), agx::Matrix4x4T< T >::preMultTranslate(), agx::Matrix4x4T< T >::ptr(), agx::Matrix4x4T< T >::set(), agx::Matrix4x4T< T >::setCol(), agx::Matrix4x4T< T >::setRow(), agx::Matrix4x4T< T >::setTranslate(), agx::Matrix4x4T< T >::transform3x3(), agx::Matrix4x4T< T >::transform3x3Inv(), and agx::Matrix4x4T< T >::transpose().