Template to handle a 3x3 matrix. More...
Public Member Functions | |
Matrix3x3 () | |
Matrix3x3 (const T x) | |
Matrix3x3 (const T x0, const T x1, const T x2, const T x3, const T x4, const T x5, const T x6, const T x7, const T x8) | |
Matrix3x3 (const struct Matrix3x3< T > &v) | |
template<typename T2 > | |
Matrix3x3 (const struct Matrix3x3< T2 > &v) | |
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
T & | operator() (unsigned int i, unsigned int j) |
const T & | operator() (unsigned int i, unsigned int j) const |
void | setZero (void) |
void | setIdentity (void) |
Matrix3x3< T > | operator+ (const struct Matrix3x3< T > &B) const |
struct Matrix3x3< T > | operator- (const struct Matrix3x3< T > &B) const |
Matrix3x3< T > | operator* (const struct Matrix3x3< T > &B) const |
void | CeqthismulB (const Matrix3x3< T > &B, Matrix3x3< T > &C) const |
Matrix3x3< T > | operator* (const double &r) const |
MAL_S3_VECTOR (, T) operator*(const MAL_S3_VECTOR( | |
void | CeqthismulB (MAL_S3_VECTOR(, T)&B, MAL_S3_VECTOR(, T)&C) const |
Matrix3x3< T > | Transpose () const |
void | Transpose (Matrix3x3< T > &A) const |
void | Inversion (struct Matrix3x3 &A) const |
T | determinant () const |
void | Fill (T value) |
bool | IsIdentity () const |
void | operator+= (const Matrix3x3< T > &B) |
void | operator-= (const Matrix3x3< T > &B) |
void | operator*= (const Matrix3x3< T > &B) |
void | operator*= (const T &t) |
Public Attributes | |
T | m [9] |
Friends | |
std::ostream & | operator<< (std::ostream &os, Matrix3x3< T > const &A) |
Template to handle a 3x3 matrix.
jrlMathTools::Matrix3x3< T >::Matrix3x3 | ( | ) | [inline] |
Defaut constructor.
jrlMathTools::Matrix3x3< T >::Matrix3x3 | ( | const T | x | ) | [inline] |
Constructor form a scalar
jrlMathTools::Matrix3x3< T >::Matrix3x3 | ( | const T | x0, | |
const T | x1, | |||
const T | x2, | |||
const T | x3, | |||
const T | x4, | |||
const T | x5, | |||
const T | x6, | |||
const T | x7, | |||
const T | x8 | |||
) | [inline, explicit] |
Constructor from 9 scalar
jrlMathTools::Matrix3x3< T >::Matrix3x3 | ( | const struct Matrix3x3< T > & | v | ) | [inline] |
Copy constructor
jrlMathTools::Matrix3x3< T >::Matrix3x3 | ( | const struct Matrix3x3< T2 > & | v | ) | [inline] |
Hybrid copy constructor
void jrlMathTools::Matrix3x3< T >::CeqthismulB | ( | MAL_S3_VECTOR(, T)& | B, | |
MAL_S3_VECTOR(, T)& | C | |||
) | const [inline] |
Multiplication operator with a vector
void jrlMathTools::Matrix3x3< T >::CeqthismulB | ( | const Matrix3x3< T > & | B, | |
Matrix3x3< T > & | C | |||
) | const [inline] |
T jrlMathTools::Matrix3x3< T >::determinant | ( | ) | const [inline] |
Determinant
void jrlMathTools::Matrix3x3< T >::Fill | ( | T | value | ) | [inline] |
fills with value
void jrlMathTools::Matrix3x3< T >::Inversion | ( | struct Matrix3x3< T > & | A | ) | const [inline] |
Inversion
bool jrlMathTools::Matrix3x3< T >::IsIdentity | ( | ) | const [inline] |
returns true if matrix is identity
jrlMathTools::Matrix3x3< T >::MAL_S3_VECTOR | ( | T | ) | const |
Multiplication operator with a vector
const T& jrlMathTools::Matrix3x3< T >::operator() | ( | unsigned int | i, | |
unsigned int | j | |||
) | const [inline] |
Access by giving the (i,j) element.
T& jrlMathTools::Matrix3x3< T >::operator() | ( | unsigned int | i, | |
unsigned int | j | |||
) | [inline] |
Access by giving the (i,j) element.
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator* | ( | const double & | r | ) | const [inline] |
Multiplication operator with a constant
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator* | ( | const struct Matrix3x3< T > & | B | ) | const [inline] |
Multiplication operator with another matrix
void jrlMathTools::Matrix3x3< T >::operator*= | ( | const T & | t | ) | [inline] |
Matrix product with a scalar
void jrlMathTools::Matrix3x3< T >::operator*= | ( | const Matrix3x3< T > & | B | ) | [inline] |
Local matrix multiplication
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator+ | ( | const struct Matrix3x3< T > & | B | ) | const [inline] |
Adition operator
void jrlMathTools::Matrix3x3< T >::operator+= | ( | const Matrix3x3< T > & | B | ) | [inline] |
Self matrix addition
struct Matrix3x3< T > jrlMathTools::Matrix3x3< T >::operator- | ( | const struct Matrix3x3< T > & | B | ) | const [inline, read] |
Substraction operator
void jrlMathTools::Matrix3x3< T >::operator-= | ( | const Matrix3x3< T > & | B | ) | [inline] |
Local matrix substraction
const T& jrlMathTools::Matrix3x3< T >::operator[] | ( | unsigned int | i | ) | const [inline] |
ith element considering the matrix as an array.
T& jrlMathTools::Matrix3x3< T >::operator[] | ( | unsigned int | i | ) | [inline] |
ith element considering the matrix as an array.
void jrlMathTools::Matrix3x3< T >::setIdentity | ( | void | ) | [inline] |
Set to identity
void jrlMathTools::Matrix3x3< T >::setZero | ( | void | ) | [inline] |
Set to zero matrix
void jrlMathTools::Matrix3x3< T >::Transpose | ( | Matrix3x3< T > & | A | ) | const [inline] |
Transposition
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::Transpose | ( | ) | const [inline] |
Transposition
std::ostream& operator<< | ( | std::ostream & | os, | |
Matrix3x3< T > const & | A | |||
) | [friend] |
T jrlMathTools::Matrix3x3< T >::m[9] |
The data array.