# TMatrix22Template< T > Class Template Reference
[Math classes]

Inheritance diagram for TMatrix22Template< T >:

List of all members.

## Public Member Functions
| TMatrix22Template (void)
template<class U >
| TMatrix22Template (const TMatrix22Template< U > &original)
| TMatrix22Template (const T &m00, const T &m01, const T &m10, const T &m11)
uint32 | GetRowDimension (void) const
uint32 | GetColumnDimension (void) const
T | operator() (const uint32 row, const uint32 col) const
T & | operator() (const uint32 row, const uint32 col)
const T * | operator[] (const uint32 row) const
T * | operator[] (const uint32 row)
void | GetRow (const uint32 row, TVector2Template< T > &v) const
void | SetRow (const uint32 row, const TVector2Template< T > &v)
void | GetColumn (const uint32 col, TVector2Template< T > &v) const
void | SetColumn (const uint32 col, const TVector2Template< T > &v)
void | SetToTranspose (void)
void | SetToTransposeOf (const TMatrix22Template< T > &source)
TMatrix22Template< T > | GetTranspose (void) const
TMatrix22Template< T > | GetAdjoint () const
T | GetTrace (void) const
T | GetDeterminant (void) const
void | Multiply (const TMatrix22Template< T > &m, const TMatrix22Template< T > &n)
TMatrix22Template< T > | Inverse (boolean *success) const
TMatrix22Template< T > & | operator*= (const T &scalar)
template<class U >
TMatrix22Template< T > & | operator= (const TMatrix22Template< U > &original)
TMatrix22Template< T > | operator+ (const TMatrix22Template< T > &r) const
TMatrix22Template< T > | operator- (const TMatrix22Template< T > &r) const
TMatrix22Template< T > | operator* (const TMatrix22Template< T > &r) const
## Static Public Attributes
static const TMatrix22Template< T > | kIdentity
static const TMatrix22Template< T > | kZero
## Protected Attributes
T | value [2][2]
| Stores the coeficients of the matrix in the form value[row][col].

## Detailed Description

### template<class T>
class TMatrix22Template< T >

Stores a 2 by 2 matrix and implements basic matrix operations. The matrix coeficients are stored in the value field

## Constructor & Destructor Documentation

template<class T >

TMatrix22Template< T >::TMatrix22Template | ( | void |  | ) | `[inline]`

template<class T>
template<class U >

TMatrix22Template< T >::TMatrix22Template | ( | const TMatrix22Template< U > & | original | ) | `[inline]`

template<class T>

TMatrix22Template< T >::TMatrix22Template | ( | const T & | m00,
|  | const T & | m01,
|  | const T & | m10,
|  | const T & | m11 |
| ) |  |  | `[inline]`

## Member Function Documentation

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::GetAdjoint | ( |  | ) | const

template<class T>

void TMatrix22Template< T >::GetColumn | ( | const uint32 | col,
|  | TVector2Template< T > & | v |
| ) |  |  | const

template<class T >

uint32 TMatrix22Template< T >::GetColumnDimension | ( | void |  | ) | const`[inline]`

template<class T>

T TMatrix22Template< T >::GetDeterminant | ( | void |  | ) | const

template<class T>

void TMatrix22Template< T >::GetRow | ( | const uint32 | row,
|  | TVector2Template< T > & | v |
| ) |  |  | const

template<class T >

uint32 TMatrix22Template< T >::GetRowDimension | ( | void |  | ) | const`[inline]`

template<class T>

T TMatrix22Template< T >::GetTrace | ( | void |  | ) | const

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::GetTranspose | ( | void |  | ) | const

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::Inverse | ( | boolean * | success | ) | const

template<class T>

void TMatrix22Template< T >::Multiply | ( | const TMatrix22Template< T > & | m,
|  | const TMatrix22Template< T > & | n |
| ) |  |  |

template<class T >

T & TMatrix22Template< T >::operator() | ( | const uint32 | row,
|  | const uint32 | col |
| ) |  |  | `[inline]`

template<class T >

T TMatrix22Template< T >::operator() | ( | const uint32 | row,
|  | const uint32 | col |
| ) |  |  | const`[inline]`

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::operator* | ( | const TMatrix22Template< T > & | r | ) | const

template<class T>

TMatrix22Template<T>& TMatrix22Template< T >::operator*= | ( | const T & | scalar | ) |

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::operator+ | ( | const TMatrix22Template< T > & | r | ) | const

template<class T>

TMatrix22Template<T> TMatrix22Template< T >::operator- | ( | const TMatrix22Template< T > & | r | ) | const

template<class T>
template<class U >

TMatrix22Template<T>& TMatrix22Template< T >::operator= | ( | const TMatrix22Template< U > & | original | ) | `[inline]`

template<class T >

T * TMatrix22Template< T >::operator[] | ( | const uint32 | row | ) | `[inline]`

template<class T >

const T * TMatrix22Template< T >::operator[] | ( | const uint32 | row | ) | const`[inline]`

template<class T>

void TMatrix22Template< T >::SetColumn | ( | const uint32 | col,
|  | const TVector2Template< T > & | v |
| ) |  |  |

template<class T>

void TMatrix22Template< T >::SetRow | ( | const uint32 | row,
|  | const TVector2Template< T > & | v |
| ) |  |  |

template<class T>

void TMatrix22Template< T >::SetToTranspose | ( | void |  | ) |

template<class T>

void TMatrix22Template< T >::SetToTransposeOf | ( | const TMatrix22Template< T > & | source | ) |

## Member Data Documentation

template<class T>

const TMatrix22Template<T> TMatrix22Template< T >::kIdentity`[static]`

template<class T>

const TMatrix22Template<T> TMatrix22Template< T >::kZero`[static]`

template<class T>

T TMatrix22Template< T >::value[2][2]`[protected]`

Stores the coeficients of the matrix in the form value[row][col].

The documentation for this class was generated from the following file:

- Matrix22.h