Template to handle a 4x4 matrix. More...
Public Member Functions | |
Matrix4x4 () | |
Matrix4x4 (const T x) | |
Matrix4x4 (const struct Matrix4x4< T > &v) | |
template<typename T2 > | |
Matrix4x4 (const struct Matrix4x4< T2 > &v) | |
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
T & | operator() (unsigned int i, unsigned int j) |
T | operator() (unsigned int i, unsigned int j) const |
void | setZero (void) |
void | setIdentity (void) |
Matrix4x4< T > | operator+ (const Matrix4x4< T > &B) const |
struct Matrix4x4< T > | operator- (const struct Matrix4x4< T > &B) const |
Matrix4x4< T > | operator* (const Matrix4x4< T > &B) const |
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 |
Vector4D< T > | operator* (const Vector4D< T > &B) const |
Matrix4x4< T > | operator* (const double &r) const |
Matrix4x4< T > | Transpose () const |
void | Inversion (Matrix4x4 &A) const |
Matrix4x4< T > | Inversion () |
T | determinant () const |
T | trace () const |
void | operator+= (const Matrix3x3< T > &B) |
void | operator-= (const Matrix4x4< T > &B) |
void | operator*= (const Matrix4x4< T > &B) |
Local matrix multiplication. | |
void | operator*= (const T &t) |
Local matrix multiplication. | |
Public Attributes | |
T | m [16] |
Friends | |
std::ostream & | operator<< (std::ostream &os, Matrix4x4< T > const &A) |
Template to handle a 4x4 matrix.
jrlMathTools::Matrix4x4< T >::Matrix4x4 | ( | ) | [inline] |
Defaut constructor.
jrlMathTools::Matrix4x4< T >::Matrix4x4 | ( | const T | x | ) | [inline] |
Constructor form a scalar
jrlMathTools::Matrix4x4< T >::Matrix4x4 | ( | const struct Matrix4x4< T > & | v | ) | [inline] |
Copy constructor
jrlMathTools::Matrix4x4< T >::Matrix4x4 | ( | const struct Matrix4x4< T2 > & | v | ) | [inline] |
Hybrid copy constructor
void jrlMathTools::Matrix4x4< T >::CeqthismulB | ( | const Vector4D< T > & | B, | |
Vector4D< T > & | C | |||
) | const [inline] |
Multiplication operator with another matrix
void jrlMathTools::Matrix4x4< T >::CeqthismulB | ( | const Matrix4x4< T > & | B, | |
Matrix4x4< T > & | C | |||
) | const [inline] |
Multiplication operator with another matrix
T jrlMathTools::Matrix4x4< T >::determinant | ( | ) | const [inline] |
Determinant
Matrix4x4<T> jrlMathTools::Matrix4x4< T >::Inversion | ( | ) | [inline] |
Inversion
void jrlMathTools::Matrix4x4< T >::Inversion | ( | Matrix4x4< T > & | A | ) | const [inline] |
Inversion
T jrlMathTools::Matrix4x4< T >::operator() | ( | unsigned int | i, | |
unsigned int | j | |||
) | const [inline] |
Access by giving the (i,j) element.
T& jrlMathTools::Matrix4x4< T >::operator() | ( | unsigned int | i, | |
unsigned int | j | |||
) | [inline] |
Access by giving the (i,j) element.
Matrix4x4<T> jrlMathTools::Matrix4x4< T >::operator* | ( | const double & | r | ) | const [inline] |
Multiplication operator with a constant
Vector4D<T> jrlMathTools::Matrix4x4< T >::operator* | ( | const Vector4D< T > & | B | ) | const [inline] |
Multiplication operator with a vector 4d
Vector3D<T> jrlMathTools::Matrix4x4< T >::operator* | ( | const Vector3D< T > & | B | ) | const [inline] |
Multiplication operator with another vector
Matrix4x4<T> jrlMathTools::Matrix4x4< T >::operator* | ( | const Matrix4x4< T > & | B | ) | const [inline] |
Multiplication operator with another matrix
void jrlMathTools::Matrix4x4< T >::operator*= | ( | const T & | t | ) | [inline] |
Local matrix multiplication.
void jrlMathTools::Matrix4x4< T >::operator*= | ( | const Matrix4x4< T > & | B | ) | [inline] |
Local matrix multiplication.
Matrix4x4<T> jrlMathTools::Matrix4x4< T >::operator+ | ( | const Matrix4x4< T > & | B | ) | const [inline] |
Addition operator
void jrlMathTools::Matrix4x4< T >::operator+= | ( | const Matrix3x3< T > & | B | ) | [inline] |
Self matrix addition
struct Matrix4x4< T > jrlMathTools::Matrix4x4< T >::operator- | ( | const struct Matrix4x4< T > & | B | ) | const [inline, read] |
Substraction operator
void jrlMathTools::Matrix4x4< T >::operator-= | ( | const Matrix4x4< T > & | B | ) | [inline] |
Local matrix substraction
const T& jrlMathTools::Matrix4x4< T >::operator[] | ( | unsigned int | i | ) | const [inline] |
ith element considering the matrix as an array.
T& jrlMathTools::Matrix4x4< T >::operator[] | ( | unsigned int | i | ) | [inline] |
ith element considering the matrix as an array.
void jrlMathTools::Matrix4x4< T >::setIdentity | ( | void | ) | [inline] |
Set to identity
void jrlMathTools::Matrix4x4< T >::setZero | ( | void | ) | [inline] |
Set to zero matrix
T jrlMathTools::Matrix4x4< T >::trace | ( | ) | const [inline] |
Matrix4x4<T> jrlMathTools::Matrix4x4< T >::Transpose | ( | ) | const [inline] |
Transposition
std::ostream& operator<< | ( | std::ostream & | os, | |
Matrix4x4< T > const & | A | |||
) | [friend] |
T jrlMathTools::Matrix4x4< T >::m[16] |
The data array.