![]() |
VMTK
|
#include <vmath.h>
Public Member Functions | |
Matrix3 () | |
Matrix3 (const T *dt) | |
Matrix3 (const Matrix3< T > &src) | |
template<class FromT > | |
Matrix3 (const Matrix3< FromT > &src) | |
void | identity () |
Vector3< T > | vectorProductMatrix (const Vector3< T > &v) const |
vectorProductMatrix: Multiplication function More... | |
bool | operator== (const Matrix3< T > &rhs) const |
bool | operator!= (const Matrix3< T > &rhs) const |
T & | at (int x, int y) |
const T & | at (int x, int y) const |
T & | operator() (int i, int j) |
const T & | operator() (int i, int j) const |
Matrix3< T > & | operator= (const Matrix3< T > &rhs) |
template<class FromT > | |
Matrix3< T > & | operator= (const Matrix3< FromT > &rhs) |
Matrix3< T > & | operator= (const T *rhs) |
Matrix3< T > | operator+ (const Matrix3< T > &rhs) const |
Matrix3< T > | operator- (const Matrix3< T > &rhs) const |
Matrix3< T > | operator+ (T rhs) const |
Matrix3< T > | operator- (T rhs) const |
Matrix3< T > | operator* (T rhs) const |
Matrix3< T > | operator/ (T rhs) const |
Vector3< T > | operator* (const Vector3< T > &rhs) const |
Matrix3< T > | operator* (Matrix3< T > rhs) const |
Matrix3< T > | transpose () |
Matrix3< T > | lerp (T fact, const Matrix3< T > &rhs) const |
T | det () |
Matrix3< T > | inverse () |
operator T* () | |
operator const T * () const | |
std::string | toString () const |
Static Public Member Functions | |
static Vector3< T > | vectorProductMatrix (const Vector3< T > v, Matrix3< T > m) |
vectorProductMatrix: Multiplication function More... | |
static Matrix3< T > | createRotationAroundAxis (T xDeg, T yDeg, T zDeg) |
static Vector3< T > | getEulerAngles (Matrix3< T > R) |
template<class It > | |
static Matrix3< T > | fromOde (const It *mat) |
template<class FromT > | |
static Matrix3< T > | fromRowMajorArray (const FromT *arr) |
template<class FromT > | |
static Matrix3< T > | fromColumnMajorArray (const FromT *arr) |
Public Attributes | |
T | data [9] |
Data stored in column major order. | |
Friends | |
std::ostream & | operator<< (std::ostream &lhs, const Matrix3< T > &rhs) |
Class for matrix 3x3.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Linear interpolation of two matrices
fact | Factor of interpolation. For translation from positon of this matrix (lhs) to matrix rhs, values of factor goes from 0.0 to 1.0. |
rhs | Second Matrix for interpolation |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Equality test operator
rhs | Right hand side argument of binary operator. |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
friend |