#include <Matrix4f.h>
Public Member Functions | |
| H3D_API_EXCEPTION (SingularMatrix4f) | |
| Thrown when trying to perform operations on a singular matrix that are not allowed. | |
| Matrix4f () | |
| Constructor. Creates an identity matrix. | |
| Matrix4f (H3DFloat m00, H3DFloat m01, H3DFloat m02, H3DFloat m03, H3DFloat m10, H3DFloat m11, H3DFloat m12, H3DFloat m13, H3DFloat m20, H3DFloat m21, H3DFloat m22, H3DFloat m23, H3DFloat m30, H3DFloat m31, H3DFloat m32, H3DFloat m33) | |
| Constructor. | |
| Matrix4f (const Rotation &r) | |
| Constructor. From Rotation object. | |
| Matrix4f (const Quaternion &q) | |
| Constructor. From Quaternion object. | |
| Matrix4f (const Matrix3f &m) | |
| Constructor. | |
| Matrix4f (const Matrix4d &m) | |
| Constructor. From Matrix4d object. | |
| void | setToIdentity () |
| Set to the identity matrix. | |
| Matrix4f | transformInverse () const |
| Returns the inverse of the matrix assuming that it is on the form. | |
| Matrix4f | transpose () const |
| Returns the transpose of the matrix. | |
| Matrix4f | inverse () const |
| Returns the inverse of the matrix. | |
| H3DFloat * | operator[] (const int i) |
| Get a row of the matrix. | |
| const H3DFloat * | operator[] (const int i) const |
| Get a row of the matrix. | |
| Vec4f | getRow (int i) const |
| Get a row of the matrix. | |
| Vec4f | getColumn (int i) const |
| Get a column of the matrix. | |
| H3DFloat | getElement (int i, int j) const |
| Get an element in the matrix. | |
| void | setElement (int i, int j, H3DFloat v) |
| Set an element in the matrix. | |
| Matrix3f | getScaleRotationPart () const |
| Returns the scale and rotation part of the Matrix4f. | |
| Vec3f | getScalePart () const |
| Get the scaling part of the matrix for each axis. | |
| Matrix3f | getRotationPart () const |
| Returns the rotation part of the Matrix4f. | |
|
|
Constructor. From Matrix3f object. Creates a tranform matrix where the rotation part is the Matrix3f. |
|
|
Returns the inverse of the matrix assuming that it is on the form. [ m00 m01 m02 m03 m10 m11 m12 m13 m20 m21 m22 m23 0 0 0 1 ] |
1.4.5