H3D::ArithmeticTypes::Matrix4d Class Reference
[Basic types.]

Representation of a 4x4 matrix. More...

#include <Matrix4d.h>

List of all members.

Public Member Functions

 H3D_API_EXCEPTION (SingularMatrix4d)
 Thrown when trying to perform operations on a singular matrix that are not allowed.
 Matrix4d ()
 Constructor. Creates an identity matrix.
 Matrix4d (H3DDouble m00, H3DDouble m01, H3DDouble m02, H3DDouble m03, H3DDouble m10, H3DDouble m11, H3DDouble m12, H3DDouble m13, H3DDouble m20, H3DDouble m21, H3DDouble m22, H3DDouble m23, H3DDouble m30, H3DDouble m31, H3DDouble m32, H3DDouble m33)
 Constructor.
 Matrix4d (const Rotation &r)
 Constructor. From Rotation object.
 Matrix4d (const Quaternion &q)
 Constructor. From Quaternion object.
 Matrix4d (const Matrix3d &m)
 Constructor.
 Matrix4d (const Matrix4f &m)
 Constructor. From Matrix4f.
void setToIdentity ()
 Set to the identity matrix.
Matrix4d transformInverse () const
 Returns the inverse of the matrix assuming that it is on the form.
Matrix4d inverse () const
 Returns the inverse of the matrix.
Matrix4d transpose () const
 Returns the transpose of the matrix.
H3DDoubleoperator[] (const int i)
 Get a row of the matrix.
const H3DDoubleoperator[] (const int i) const
 Get a row of the matrix.
Vec4d getRow (int i) const
 Get a row of the matrix.
Vec4d getColumn (int i) const
 Get a column of the matrix.
H3DDouble getElement (int i, int j) const
 Get an element in the matrix.
void setElement (int i, int j, H3DDouble v)
 Set an element in the matrix.
Matrix3d getScaleRotationPart () const
 Returns the scale and rotation part of the Matrix4d.
Matrix3d getRotationPart () const
 Returns the rotation part of the Matrix4d.
Vec3d getScalePart () const
 Get the scaling part of the matrix for each axis.


Detailed Description

Representation of a 4x4 matrix.


Constructor & Destructor Documentation

H3D::ArithmeticTypes::Matrix4d::Matrix4d const Matrix3d m  )  [explicit]
 

Constructor.

From Matrix3d object. Creates a tranform matrix where the rotation part is the Matrix3d.


Member Function Documentation

Matrix4d H3D::ArithmeticTypes::Matrix4d::transformInverse  )  const
 

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 ]


Generated on Thu Aug 24 12:40:32 2006 for H3D API by  doxygen 1.4.5