Generic 4x4 matrix. More...
#include <jrl/mathtools/matrix4x4.hh>
Public Member Functions | |
Matrix4x4 () | |
Defaut constructor. More... | |
Matrix4x4 (const T x) | |
Constructor form a scalar. More... | |
Matrix4x4 (const Matrix4x4< T > &v) | |
Copy constructor. More... | |
template<typename T2 > | |
Matrix4x4 (const Matrix4x4< T2 > &v) | |
Hybrid copy constructor. More... | |
T & | operator[] (unsigned int i) |
ith element considering the matrix as an array. More... | |
const T & | operator[] (unsigned int i) const |
ith element considering the matrix as an array. More... | |
T & | operator() (unsigned int i, unsigned int j) |
Access by giving the (i,j) element. More... | |
T | operator() (unsigned int i, unsigned int j) const |
Access by giving the (i,j) element. More... | |
void | setZero (void) |
Set to zero matrix. More... | |
void | setIdentity () |
Set to identity. More... | |
Matrix4x4< T > | operator+ (const Matrix4x4< T > &B) const |
Addition operator. More... | |
Matrix4x4< T > | operator- (const Matrix4x4< T > &B) const |
Substraction operator. More... | |
Matrix4x4< T > | operator* (const Matrix4x4< T > &B) const |
Multiplication operator with another matrix. More... | |
void | CeqthismulB (const Matrix4x4< T > &B, Matrix4x4< T > &C) const |
void | CeqthismulB (const Vector4D< T > &B, Vector4D< T > &C) const |
Vector3D< T > | operator* (const Vector3D< T > &B) const |
Multiplication operator with another vector. More... | |
Vector4D< T > | operator* (const Vector4D< T > &B) const |
Multiplication operator with a vector 4d. More... | |
Matrix4x4< T > | operator* (const T &r) const |
Multiplication operator with a constant. More... | |
Matrix4x4< T > | Transpose () const |
Transposition. More... | |
void | Inversion (Matrix4x4 &A) const |
Inversion. More... | |
Matrix4x4< T > | Inversion () |
Inversion. More... | |
T | determinant () const |
Determinant. More... | |
T | trace () const |
void | operator+= (const Matrix3x3< T > &B) |
Self matrix addition. More... | |
void | operator-= (const Matrix4x4< T > &B) |
Local matrix subtraction. More... | |
void | operator*= (const Matrix4x4< T > &B) |
Local matrix multiplication. More... | |
void | operator*= (const T &t) |
Local matrix multiplication. More... | |
std::ostream & | display (std::ostream &os) const |
Public Attributes | |
T | m [16] |
The data array. More... | |
Generic 4x4 matrix.
|
inline |
Defaut constructor.
|
inline |
Constructor form a scalar.
|
inline |
Copy constructor.
References jrlMathTools::Matrix4x4< T >::m.
|
inline |
Hybrid copy constructor.
References jrlMathTools::Matrix4x4< T >::m.
|
inline |
|
inline |
|
inline |
Determinant.
Referenced by jrlMathTools::Matrix4x4< T >::Inversion().
|
inline |
|
inline |
Inversion.
References jrlMathTools::Matrix4x4< T >::determinant().
|
inline |
Inversion.
References jrlMathTools::Matrix4x4< T >::determinant().
|
inline |
Access by giving the (i,j) element.
|
inline |
Access by giving the (i,j) element.
|
inline |
Multiplication operator with another matrix.
|
inline |
Multiplication operator with another vector.
References jrlMathTools::Vector3D< T >::m_x, jrlMathTools::Vector3D< T >::m_y, and jrlMathTools::Vector3D< T >::m_z.
|
inline |
Multiplication operator with a vector 4d.
References jrlMathTools::Vector4D< T >::m_w, jrlMathTools::Vector4D< T >::m_x, jrlMathTools::Vector4D< T >::m_y, and jrlMathTools::Vector4D< T >::m_z.
|
inline |
Multiplication operator with a constant.
|
inline |
Local matrix multiplication.
|
inline |
Local matrix multiplication.
|
inline |
Addition operator.
|
inline |
Self matrix addition.
References jrlMathTools::Matrix3x3< T >::m.
|
inline |
Substraction operator.
|
inline |
Local matrix subtraction.
|
inline |
ith element considering the matrix as an array.
|
inline |
ith element considering the matrix as an array.
|
inline |
Set to identity.
References jrlMathTools::Matrix4x4< T >::setZero().
|
inline |
Set to zero matrix.
Referenced by jrlMathTools::Matrix4x4< T >::setIdentity().
|
inline |
|
inline |
Transposition.
T jrlMathTools::Matrix4x4< T >::m[16] |
The data array.
Referenced by jrlMathTools::Matrix4x4< T >::Matrix4x4(), and jrlMathTools::operator<<().