![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The TMatrix4 class provides a simple 4x4 square matrix class for geometry applications. More...
Public Types | |
typedef TVector4< T > | tColumn |
typedef TVector4< T > | tRow |
Public Member Functions | |
TMatrix4 () | |
TMatrix4 (const tColumn &iCol0, const tColumn &iCol1, const tColumn &iCol2, const tColumn &iCol3) | |
TMatrix4 (const TMatrix4 &iOther) | |
template<typename U > | |
TMatrix4 (const TMatrix4< U > &iOther) | |
TMatrix4 (T iM00, T iM01, T iM02, T iM03, T iM10, T iM11, T iM12, T iM13, T iM20, T iM21, T iM22, T iM23, T iM30, T iM31, T iM32, T iM33) | |
TMatrix4 (T iValue) | |
T * | Data () |
const T * | Data () const |
T | Determinant () const |
TMatrix4 | Inverse () const |
bool | operator!= (const TMatrix4 &iOther) |
TMatrix4 & | operator*= (const TMatrix4 &iOther) |
TMatrix4 & | operator*= (T iValue) |
TMatrix4 & | operator+= (const TMatrix4 &iOther) |
TMatrix4 & | operator+= (T iValue) |
TMatrix4 | operator- () const |
TMatrix4 & | operator-= (const TMatrix4 &iOther) |
TMatrix4 & | operator-= (T iValue) |
TMatrix4 & | operator/= (const TMatrix4 &iOther) |
TMatrix4 & | operator/= (T iValue) |
TMatrix4 & | operator= (const TMatrix4 &iOther) |
bool | operator== (const TMatrix4 &iOther) |
tColumn & | operator[] (int iIndex) |
const tColumn & | operator[] (int iIndex) const |
TMatrix4 | Transpose () const |
The TMatrix4 class is a template class that provides basic matrix functionnalities, it can be used with any numeric types, ranging from integer values to floating point values.
TMatrix3 are column-major ordered.
TMatrix4< T >::TMatrix4 | ( | T | iM00, |
T | iM01, | ||
T | iM02, | ||
T | iM03, | ||
T | iM10, | ||
T | iM11, | ||
T | iM12, | ||
T | iM13, | ||
T | iM20, | ||
T | iM21, | ||
T | iM22, | ||
T | iM23, | ||
T | iM30, | ||
T | iM31, | ||
T | iM32, | ||
T | iM33 | ||
) |
Constructor from input cells values.
TMatrix4< T >::TMatrix4 | ( | const tColumn & | iCol0, |
const tColumn & | iCol1, | ||
const tColumn & | iCol2, | ||
const tColumn & | iCol3 | ||
) |
Constructor from row vector values.
Conversion constructor from other matrix type.
T * TMatrix4< T >::Data | ( | ) |
Return a pointer to the base storage.
const T * TMatrix4< T >::Data | ( | ) | const |
Return a pointer to the base storage.
T TMatrix4< T >::Determinant | ( | ) | const |
Obtain the determinant of the matrix.
Obtain the inverse of the matrix.
Inequality operator.
Unary multiplication operator with matrix.
Unary multiplication operator with value.
Unary addition operator with matrix.
Unary addition operator with value.
Unary substraction operator with matrix.
Unary substraction operator with value.
Unary division operator with matrix.
Unary division operator with value.
Assignment operator from matrix.
Equality operator.
Subscript accessor for matrix columns.
Subscript accessor for const matrix columns.