#include <Matrix3.h>
Public Methods | |
| Matrix3 () | |
| Matrix3 (const Matrix3 &m) | |
| void | identity () |
| void | transpose () |
| void | rotate (Vertex3 &a, real alpha) |
| Construct rotation matrix. | |
| void | construct (Vertex3 &up, const Vertex3 &dir) |
| . More... | |
| MatrixRow | operator[] (unsigned int row) |
| const real * | data () const |
| Matrix3 & | operator= (const Matrix3 &right) |
| Matrix3 & | operator= (const Quaternion &q) |
| void | operator *= (const Matrix3 &right) |
| Matrix3 | operator * (const Matrix3 &right) const |
| Vertex3 | operator * (const Vertex3 &v) const |
| Matrix3 | operator~ () const |
| real | det () const |
| Quaternion | quaternion () |
| Vertex3 | apply (const Vertex3 &v) const |
| Vertex3 | applyInverse (const Vertex3 &v) const |
| . More... | |
| void | scale (Vertex3 &v) |
| void | rotate (Vertex3 &v) |
| . | |
| void | rotateX (real alpha) |
| Post concatanate x-axis rotation. More... | |
| void | rotateY (real alpha) |
| Post concatanate y-axis rotation. More... | |
| void | rotateZ (real alpha) |
| Post concatanate z-axis rotation. More... | |
Friends | |
| ostream & | operator<< (ostream &stream, Matrix3 &m) |
| ObjectFile & | operator>> (ObjectFile &f, Matrix3 &m) |
|
|
.
|
|
||||||||||||
|
. Construct the orientation matrix given an up vector and direction.
|
|
|
Post concatanate x-axis rotation. Calculates:
|
|
|
Post concatanate y-axis rotation. Calculates:
|
|
|
Post concatanate z-axis rotation. Calculates:
|