![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The TMatrix2 class provides a simple 2x2 square matrix class for geometry applications. More...
Public Types | |
typedef TVector2< T > | tColumn |
typedef TVector2< T > | tRow |
Public Member Functions | |
TMatrix2 () | |
TMatrix2 (const tColumn &iCol0, const tColumn &iCol1) | |
TMatrix2 (const TMatrix2 &iOther) | |
template<typename U > | |
TMatrix2 (const TMatrix2< U > &iOther) | |
TMatrix2 (T iM00, T iM01, T iM10, T iM11) | |
TMatrix2 (T iValue) | |
T * | Data () |
const T * | Data () const |
T | Determinant () const |
TMatrix2 | Inverse () const |
bool | operator!= (const TMatrix2 &iOther) |
TMatrix2 & | operator*= (const TMatrix2 &iOther) |
TMatrix2 & | operator*= (T iValue) |
TMatrix2 & | operator+= (const TMatrix2 &iOther) |
TMatrix2 & | operator+= (T iValue) |
TMatrix2 | operator- () const |
TMatrix2 & | operator-= (const TMatrix2 &iOther) |
TMatrix2 & | operator-= (T iValue) |
TMatrix2 & | operator/= (const TMatrix2 &iOther) |
TMatrix2 & | operator/= (T iValue) |
TMatrix2 & | operator= (const TMatrix2 &iOther) |
bool | operator== (const TMatrix2 &iOther) |
tColumn & | operator[] (int iIndex) |
const tColumn & | operator[] (int iIndex) const |
TMatrix2 | Transpose () const |
Static Public Member Functions | |
static TMatrix2 | MakeRotationMatrix (T iAngleRad) |
static TMatrix2 | MakeScaleMatrix (T iScaleX, T iScaleY) |
static TMatrix2 | MakeSkewMatrix (T iSkewX, T iSkewY) |
The TMatrix2 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.
TMatrix2 are column-major ordered.
Constructor from input cells values.
Constructor from row vector values.
Conversion constructor from other matrix type.
T * TMatrix2< T >::Data | ( | ) |
Return a pointer to the base storage.
const T * TMatrix2< T >::Data | ( | ) | const |
Return a pointer to the base storage.
T TMatrix2< T >::Determinant | ( | ) | const |
Obtain the determinant of the matrix.
Obtain the inverse of the matrix.
Static maker for 2D 2x2 rotation matrix.
Static maker for 2D 2x2 scale matrix.
Static maker for 2D 2x2 skew 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.