#include <vmath.h>
Public Member Functions | |
Matrix3 () | |
Matrix3 (const T *dt) | |
void | indetity () |
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 |
Matrix3< T > & | operator= (const Matrix3< T > &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 |
operator T * () | |
operator const T * () const | |
Static Public Member Functions | |
static Matrix3< T > | createRotationAroundAxis (T a, T b, T c) |
template<class It> | |
static Matrix3< T > | fromOde (const It *mat) |
Public Attributes | |
T | data [9] |
Data stored in column major order. | |
Friends | |
std::ostream & | operator<< (std::ostream &lhs, const Matrix3< T > &rhs) |
Copy matrix values from array (these data must be in column major order!)
void Matrix3< T >::indetity | ( | ) | [inline] |
Resets matrix to be indetity matrix
static Matrix3<T> Matrix3< T >::createRotationAroundAxis | ( | T | a, | |
T | b, | |||
T | c | |||
) | [inline, static] |
Creates rotation matrix by rotation around axis.
a | Angle (in radians) of rotation around axis X. | |
b | Angle (in radians) of rotation around axis Y. | |
c | Angle (in radians) of rotation around axis Z. |
static Matrix3<T> Matrix3< T >::fromOde | ( | const It * | mat | ) | [inline, static] |
Creates roation matrix from ODE Matrix.
Equality test operator
rhs | Right hand side argument of binary operator. |
Inequality test operator
rhs | Right hand side argument of binary operator. |
T& Matrix3< T >::at | ( | int | x, | |
int | y | |||
) | [inline] |
Get reference to element at postion (x,y).
x | Number of column (0..2) | |
y | Number of row (0..2) |
const T& Matrix3< T >::at | ( | int | x, | |
int | y | |||
) | const [inline] |
Get constant reference to element at postion (x,y).
x | Number of column (0..2) | |
y | Number of row (0..2) |
Copy operator
rhs | Right hand side argument of binary operator. |
Copy operator
rhs | Right hand side argument of binary operator. |
Addition operator
rhs | Right hand side argument of binary operator. |
Substraction operator
rhs | Right hand side argument of binary operator. |
Addition operator
rhs | Right hand side argument of binary operator. |
Substraction operator
rhs | Right hand side argument of binary operator. |
Multiplication operator
rhs | Right hand side argument of binary operator. |
Division operator
rhs | Right hand side argument of binary operator. |
Multiplication operator
rhs | Right hand side argument of binary operator. |
Multiplication operator
rhs | Right hand side argument of binary operator. |
Linear interpolation of two vectors
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 |
Matrix3< T >::operator T * | ( | ) | [inline] |
Conversion to pointer operator
Matrix3< T >::operator const T * | ( | ) | const [inline] |
Conversion to pointer operator
std::ostream& operator<< | ( | std::ostream & | lhs, | |
const Matrix3< T > & | rhs | |||
) | [friend] |
Output to stream operator
lhs | Left hand side argument of operator (commonly ostream instance). | |
rhs | Right hand side argument of operator. |