a 4x4 matrix used to represent the OpenGL rotation/translation Matrix stack More...
#include <matrix4x4.h>
Public Member Functions | |
| void | makeDiag (double d=1.0) |
| void | makeDiag (double d=1.0) |
| Matrix4x4 () | |
| Matrix4x4 () | |
| Matrix4x4 (const Matrix4x4 &other) | |
| Matrix4x4 (const Matrix4x4 &other) | |
| Matrix4x4 (const double *data) | |
| Matrix4x4 (const double *data) | |
| Matrix4x4 | operator* (const Matrix4x4 &other) const |
| matrix multiplication | |
| Matrix4x4 | operator* (const Matrix4x4 &other) const |
| matrix multiplication | |
| Vector4 | operator* (const Vector4 &vec) const |
| calculate matrix * vec | |
| Vector4 | operator* (const Vector4 &vec) const |
| calculate matrix * vec | |
| Matrix4x4 & | operator= (const Matrix4x4 &other) |
| Matrix4x4 & | operator= (const Matrix4x4 &other) |
| double * | operator[] (unsigned int m) throw (std::runtime_error) |
| double * | operator[] (unsigned int m) throw (std::runtime_error) |
| const double * | operator[] (unsigned int m) const throw (std::runtime_error) |
| const double * | operator[] (unsigned int m) const throw (std::runtime_error) |
| ~Matrix4x4 () | |
| ~Matrix4x4 () | |
Static Public Member Functions | |
| static Matrix4x4 | identity () |
| static Matrix4x4 | identity () |
| static Matrix4x4 | rotate (double phi, double u, double v, double w) |
| static Matrix4x4 | rotate (double phi, double u, double v, double w) |
| static Matrix4x4 | scale (double sx, double sy, double sz) |
| static Matrix4x4 | scale (double sx, double sy, double sz) |
| static Matrix4x4 | translate (double dx, double dy, double dz) |
| static Matrix4x4 | translate (double dx, double dy, double dz) |
Protected Member Functions | |
| void | copy (const Matrix4x4 &other) |
| copy method for a deep copy of the data | |
| void | copy (const Matrix4x4 &other) |
| copy method for a deep copy of the data | |
Protected Attributes | |
| double | _data [16] |
| array representing the matrix elems | |
a 4x4 matrix used to represent the OpenGL rotation/translation Matrix stack
Definition at line 32 of file include/hogman_minimal/graph_viewer/matrix4x4.h.
Definition at line 29 of file matrix4x4.cpp.
Definition at line 34 of file matrix4x4.cpp.
| vrml::Matrix4x4::Matrix4x4 | ( | const Matrix4x4 & | other | ) |
Definition at line 38 of file matrix4x4.cpp.
| vrml::Matrix4x4::Matrix4x4 | ( | const double * | data | ) | [explicit] |
Definition at line 118 of file matrix4x4.cpp.
| vrml::Matrix4x4::Matrix4x4 | ( | const Matrix4x4 & | other | ) |
| vrml::Matrix4x4::Matrix4x4 | ( | const double * | data | ) | [explicit] |
| void vrml::Matrix4x4::copy | ( | const Matrix4x4 & | other | ) | [protected] |
copy method for a deep copy of the data
Definition at line 43 of file matrix4x4.cpp.
| void vrml::Matrix4x4::copy | ( | const Matrix4x4 & | other | ) | [protected] |
copy method for a deep copy of the data
| Matrix4x4 vrml::Matrix4x4::identity | ( | ) | [static] |
return the identity matrix
Definition at line 134 of file matrix4x4.cpp.
| static Matrix4x4 vrml::Matrix4x4::identity | ( | ) | [static] |
return the identity matrix
| void vrml::Matrix4x4::makeDiag | ( | double | d = 1.0 | ) |
make a diagonal matrix
| d | the value for the diagonal elems |
Definition at line 48 of file matrix4x4.cpp.
| void vrml::Matrix4x4::makeDiag | ( | double | d = 1.0 | ) |
make a diagonal matrix
| d | the value for the diagonal elems |
matrix multiplication
Definition at line 63 of file matrix4x4.cpp.
calculate matrix * vec
Definition at line 123 of file matrix4x4.cpp.
Definition at line 55 of file matrix4x4.cpp.
| double* vrml::Matrix4x4::operator[] | ( | unsigned int | m | ) | throw (std::runtime_error) [inline] |
index operator, to access the m-th row
Definition at line 50 of file include/hogman_minimal/graph_viewer/matrix4x4.h.
| double* vrml::Matrix4x4::operator[] | ( | unsigned int | m | ) | throw (std::runtime_error) [inline] |
index operator, to access the m-th row
Definition at line 50 of file src/graph_viewer/matrix4x4.h.
| const double* vrml::Matrix4x4::operator[] | ( | unsigned int | m | ) | const throw (std::runtime_error) [inline] |
index operator, to access the m-th row
Definition at line 60 of file src/graph_viewer/matrix4x4.h.
| const double* vrml::Matrix4x4::operator[] | ( | unsigned int | m | ) | const throw (std::runtime_error) [inline] |
index operator, to access the m-th row
Definition at line 60 of file include/hogman_minimal/graph_viewer/matrix4x4.h.
| static Matrix4x4 vrml::Matrix4x4::rotate | ( | double | phi, |
| double | u, | ||
| double | v, | ||
| double | w | ||
| ) | [static] |
rotate with an angle around the axis (u, v, w). IMPORTANT angle is in degree.
| phi | rotation angle in radian |
| u,v,w | the rotation axis |
| Matrix4x4 vrml::Matrix4x4::rotate | ( | double | phi, |
| double | u, | ||
| double | v, | ||
| double | w | ||
| ) | [static] |
rotate with an angle around the axis (u, v, w). IMPORTANT angle is in degree.
| phi | rotation angle in radian |
| u,v,w | the rotation axis |
Definition at line 86 of file matrix4x4.cpp.
| static Matrix4x4 vrml::Matrix4x4::scale | ( | double | sx, |
| double | sy, | ||
| double | sz | ||
| ) | [static] |
get scaling Matrix
| Matrix4x4 vrml::Matrix4x4::scale | ( | double | sx, |
| double | sy, | ||
| double | sz | ||
| ) | [static] |
get scaling Matrix
Definition at line 141 of file matrix4x4.cpp.
| Matrix4x4 vrml::Matrix4x4::translate | ( | double | dx, |
| double | dy, | ||
| double | dz | ||
| ) | [static] |
return translation matrix
Definition at line 76 of file matrix4x4.cpp.
| static Matrix4x4 vrml::Matrix4x4::translate | ( | double | dx, |
| double | dy, | ||
| double | dz | ||
| ) | [static] |
return translation matrix
double vrml::Matrix4x4::_data [protected] |
array representing the matrix elems
Definition at line 97 of file include/hogman_minimal/graph_viewer/matrix4x4.h.