#include <M3D.h>
Public Member Functions | |
| M3D (bool identity=true) | |
| M3D (const V3D &e1, const V3D &e2, const V3D &e3) | |
| M3D (const Real *v) | |
| M3D (const V3D &v) | |
| void | Init (const V3D &e1, const V3D &e2, const V3D &e3) |
| void | Init (const Real *v) |
| void | MakeId () |
| void | Zero () |
| void | NormalizeColumns () |
| void | ToArray (Real *v) const |
| void | ToOpenGLMatrix (double *m) const |
| void | ToOpenGLMatrix (float *m) const |
| void | operator+= (const M3D &m) |
| void | operator *= (const M3D &m) |
| void | operator *= (const Real a) |
| M3D | operator * (const M3D &m) const |
| V3D | operator * (const V3D &v) const |
| M3D | operator * (const Real &r) const |
| void | operator= (const M3D &m1) |
| Real & | operator() (int i, int j) |
| Real | operator() (int i, int j) const |
| Real | Elem (int i, int j) const |
| Real & | ElemRef (int i, int j) |
| V3D | operator[] (const int i) const |
| Real | Det () const |
| void | Transpose () |
| void | InvRot () |
| void | CalculateInvRot (M3D *res) |
| void | Inv () |
| void | RotX (const Real &alfa) |
| void | RotY (const Real &alfa) |
| void | RotZ (const Real &alfa) |
| void | RotV (const V3D &w, const Real &alfa) |
Public Attributes | |
| Real | matrix [9] |
Friends | |
| V3D | operator * (const V3D &v, const M3D &m) |
| M3D | operator * (const Real &s, const M3D &m) |
|
|
Matriu Id si true (o per defecte) o matriu de zeros si false |
|
||||||||||||||||
|
Construeix matriu a partir dels 3 vectors columna |
|
|
Construeix matriu a partir de vector de 9 Reals |
|
|
Construeix matriu v* (v_star),és a dir,matriu M tal que: v ^ w = v*·w = M·w = (producte vectorial) |
|
|
res = (*this) rotació inversa (transposada) |
|
|
|
|
||||||||||||
|
Retorna sense poder modificar valor |
|
||||||||||||
|
Retorna podent modificar valor |
|
|
|
|
||||||||||||||||
|
|
|
|
Inverteix la matriu (realment, no transposant) |
|
|
Inverteix la matriu de rotació==Transposar |
|
|
|
|
|
|
|
|
Multiplica per un escalar per la dreta |
|
|
Aplica la matriu this al vector v (TG vector) |
|
|
Multiplicació habitual de matrius |
|
|
Multiplica per un escalar |
|
|
Premultiplica matriu m per this (this:=m*this) Correspon a aplicar TGeomètrica m sobre this |
|
||||||||||||
|
Accés a una posició |
|
||||||||||||
|
Accés a una posició |
|
|
|
|
|
|
|
|
Retorna vector columna 0..3, que corresponen als vectors X, Y, Z i Translació en coordenades NO transformades |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Premultiplica tota la matriu per un escalar |
|
||||||||||||
|
Premultiplica per un vector El vector es considera vector columna transposat = vT |
|
|
|
1.3.5