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

Representation of a 3x3 matrix. More...

#include <Matrix3f.h>

List of all members.

Public Member Functions

 H3D_API_EXCEPTION (SingularMatrix3f)
 Thrown when trying to perform operations on a singular matrix that are not allowed.
 Matrix3f ()
 Constructor. Creates an identity matrix.
 Matrix3f (H3DFloat m00, H3DFloat m01, H3DFloat m02, H3DFloat m10, H3DFloat m11, H3DFloat m12, H3DFloat m20, H3DFloat m21, H3DFloat m22)
 Constructor.
 Matrix3f (const Rotation &r)
 Constructor. From Rotation object.
 Matrix3f (const Quaternion &q)
 Constructor. From Quaternion object.
 Matrix3f (const Matrix3d &v)
 Constructor. From Matrix3d.
void setToIdentity ()
 Set the Matrix3f to the identity matrix.
Matrix3f transpose () const
 Returns the transpose of the matrix.
Matrix3f inverse () const
 Returns the inverse of the matrix.
H3DFloatoperator[] (int i)
 Get a row of the matrix.
const H3DFloatoperator[] (int i) const
 Get a row of the matrix.
Vec3f getRow (int i) const
 Get a row 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.
Vec3f getScalePart () const
 Get the scaling part of the matrix for each axis.
Vec3f toEulerAngles ()
 Get the euler angles( yaw, pitch, roll ) representation of the rotation matrix.
Vec3f getColumn (int i) const
 Get a column of the matrix.


Detailed Description

Representation of a 3x3 matrix.


Member Function Documentation

Vec3f H3D::ArithmeticTypes::Matrix3f::toEulerAngles  ) 
 

Get the euler angles( yaw, pitch, roll ) representation of the rotation matrix.

The Matrix3f must be a rotation matrix.


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