4x4 matrix object. More...
#include <matrix_4.h>
Public Member Functions | |
void | clear (void) throw () |
void | setZero (void) throw () |
void | setIdentity (void) throw () |
void | addTranslation (IN const point3d_t &t) throw () |
void | operator+= (IN const point3d_t &t) throw () |
void | setTranslation (IN const point3d_t &t) throw () |
void | operator= (IN const point3d_t &t) throw () |
const point3d_t | getTranslation (void) const throw () |
void | setZRotation (IN float radians) throw () |
void | setXRotation (IN float radians) throw () |
void | setYRotation (IN float radians) throw () |
void | setXYZScale (IN float r) throw () |
void | transpose (void) throw () |
void | dump (IN const char *txt) const throw () |
point3d_t | transform (IN const point3d_t &p) const throw () |
transforms 3D point p. | |
void | setToProductOf (IN const matrix4_t &A, IN const matrix4_t &B) throw () |
sets M = AB (note: order is important for matrix multiplication!) | |
void | addMatrix (IN const matrix4_t &A) throw () |
M = M + A CAREFUL: do you really want to do this? Not legal for 3D xforms. | |
void | subtractMatrix (IN const matrix4_t &B) throw () |
M = M - A CAREFUL: do you really want to do this? Not legal for 3D xforms. | |
void | scale (IN float r) throw () |
M = r * M CAREFUL: do you really want to do this? Not legal for 3D xforms. | |
Public Attributes | |
float | m [16] |
4x4 matrix object.
Note that this matrix is especially optimized for 3D transformations.
Definition at line 52 of file matrix_4.h.
void matrix4_t::clear | ( | void | ) | throw () [inline] |
Definition at line 55 of file matrix_4.h.
void matrix4_t::setZero | ( | void | ) | throw () |
Definition at line 59 of file matrix_4.cpp.
void matrix4_t::setIdentity | ( | void | ) | throw () [inline] |
Definition at line 57 of file matrix_4.h.
void matrix4_t::addTranslation | ( | IN const point3d_t & | t | ) | throw () |
Definition at line 87 of file matrix_4.cpp.
void matrix4_t::operator+= | ( | IN const point3d_t & | t | ) | throw () [inline] |
Definition at line 60 of file matrix_4.h.
void matrix4_t::setTranslation | ( | IN const point3d_t & | t | ) | throw () [inline] |
Definition at line 64 of file matrix_4.h.
void matrix4_t::operator= | ( | IN const point3d_t & | t | ) | throw () [inline] |
Definition at line 68 of file matrix_4.h.
const point3d_t matrix4_t::getTranslation | ( | void | ) | const throw () [inline] |
Definition at line 72 of file matrix_4.h.
void matrix4_t::setZRotation | ( | IN float | radians | ) | throw () |
Definition at line 101 of file matrix_4.cpp.
void matrix4_t::setXRotation | ( | IN float | radians | ) | throw () |
Definition at line 132 of file matrix_4.cpp.
void matrix4_t::setYRotation | ( | IN float | radians | ) | throw () |
Definition at line 163 of file matrix_4.cpp.
void matrix4_t::setXYZScale | ( | IN float | r | ) | throw () |
Definition at line 194 of file matrix_4.cpp.
void matrix4_t::transpose | ( | void | ) | throw () |
Definition at line 346 of file matrix_4.cpp.
void matrix4_t::dump | ( | IN const char * | txt | ) | const throw () |
Definition at line 222 of file matrix_4.cpp.
transforms 3D point p.
NOTE: assumes this 4x4 matrix is the standard form for 3D transformations!
Definition at line 242 of file matrix_4.cpp.
sets M = AB (note: order is important for matrix multiplication!)
Definition at line 267 of file matrix_4.cpp.
void matrix4_t::addMatrix | ( | IN const matrix4_t & | A | ) | throw () |
M = M + A CAREFUL: do you really want to do this? Not legal for 3D xforms.
Definition at line 290 of file matrix_4.cpp.
void matrix4_t::subtractMatrix | ( | IN const matrix4_t & | B | ) | throw () |
M = M - A CAREFUL: do you really want to do this? Not legal for 3D xforms.
Definition at line 318 of file matrix_4.cpp.
void matrix4_t::scale | ( | IN float | r | ) | throw () |
M = r * M CAREFUL: do you really want to do this? Not legal for 3D xforms.
float matrix4_t::m[16] |
Definition at line 106 of file matrix_4.h.