4x4 Matrix template
Public Member Functions | |
| void | Set (T e11, T e12, T e13, T e14, T e21, T e22, T e23, T e24, T e31, T e32, T e33, T e34, T e41, T e42, T e43, T e44) |
| void | Set (const T *apEl) |
| tSize | size () const |
| T * | ptr () |
| const T * | ptr () const |
| T & | operator() (int row, int col) |
| T | operator() (int row, int col) const |
| T & | operator[] (int idx) |
| T | operator[] (int idx) const |
| sMatrix< T > & | operator*= (const sMatrix< T > &matB) |
| sMatrix< T > & | operator+= (const sMatrix< T > &matB) |
| sMatrix< T > & | operator-= (const sMatrix< T > &matB) |
| sMatrix< T > & | operator*= (T s) |
| sMatrix< T > & | operator/= (T s) |
| sMatrix< T > | operator+ () const |
| sMatrix< T > | operator- () const |
| sMatrix< T > | operator* (const sMatrix< T > &matB) const |
| sMatrix< T > | operator+ (const sMatrix< T > &matB) const |
| sMatrix< T > | operator- (const sMatrix< T > &matB) const |
| sMatrix< T > | operator* (T s) const |
| sMatrix< T > | operator/ (T s) const |
| bool | operator< (const sMatrix< T > &aR) const |
| bool | operator<= (const sMatrix< T > &aR) const |
| bool | operator> (const sMatrix< T > &aR) const |
| bool | operator>= (const sMatrix< T > &aR) const |
| bool | operator== (const sMatrix< T > &aR) const |
| bool | operator!= (const sMatrix< T > &aR) const |
| sMatrix< T > | Mul (const sMatrix< T > &M2) const |
Static Public Member Functions | |
| static const sMatrix & | One () |
| static const sMatrix & | Zero () |
| static const sMatrix & | Identity () |
| static const sMatrix & | Hermite () |
| static const sMatrix & | Epsilon () |
| static sMatrix< T > & | _Mul (sMatrix< T > &Out, const sMatrix< T > &A, const sMatrix< T > &B) |
Public Attributes | |
| T | _11 |
| data More... | |
| T | _12 |
| T | _13 |
| T | _14 |
| T | _21 |
| T | _22 |
| T | _23 |
| T | _24 |
| T | _31 |
| T | _32 |
| T | _33 |
| T | _34 |
| T | _41 |
| T | _42 |
| T | _43 |
| T | _44 |
| void Set | ( | T | e11, |
| T | e12, | ||
| T | e13, | ||
| T | e14, | ||
| T | e21, | ||
| T | e22, | ||
| T | e23, | ||
| T | e24, | ||
| T | e31, | ||
| T | e32, | ||
| T | e33, | ||
| T | e34, | ||
| T | e41, | ||
| T | e42, | ||
| T | e43, | ||
| T | e44 | ||
| ) |
| void Set | ( | const T * | apEl | ) |
| tSize size | ( | ) | const |
| T* ptr | ( | ) |
| const T* ptr | ( | ) | const |
| T& operator() | ( | int | row, |
| int | col | ||
| ) |
| T operator() | ( | int | row, |
| int | col | ||
| ) | const |
| T& operator[] | ( | int | idx | ) |
| T operator[] | ( | int | idx | ) | const |
| sMatrix<T>& operator*= | ( | T | s | ) |
| sMatrix<T>& operator/= | ( | T | s | ) |
| sMatrix<T> operator+ | ( | ) | const |
| sMatrix<T> operator- | ( | ) | const |
| sMatrix<T> operator* | ( | T | s | ) | const |
| sMatrix<T> operator/ | ( | T | s | ) | const |
| bool operator< | ( | const sMatrix< T > & | aR | ) | const |
| bool operator<= | ( | const sMatrix< T > & | aR | ) | const |
| bool operator> | ( | const sMatrix< T > & | aR | ) | const |
| bool operator>= | ( | const sMatrix< T > & | aR | ) | const |
| bool operator== | ( | const sMatrix< T > & | aR | ) | const |
| bool operator!= | ( | const sMatrix< T > & | aR | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| T _11 |
data
| T _12 |
| T _13 |
| T _14 |
| T _21 |
| T _22 |
| T _23 |
| T _24 |
| T _31 |
| T _32 |
| T _33 |
| T _34 |
| T _41 |
| T _42 |
| T _43 |
| T _44 |
1.8.7