DzMatrix4 Class Reference
[Basic Objects]

A 4 x 4 transformation matrix. More...

List of all members.

Properties

Number m11
Number m12
Number m13
Number m14
Number m21
Number m22
Number m23
Number m24
Number m31
Number m32
Number m33
Number m34
Number m41
Number m42
Number m43
Number m44

Constructors



 DzMatrix4 (Number m11, Number m12, Number m13, Number m14, Number m21, Number m22, Number m23, Number m24, Number m31, Number m32, Number m33, Number m34, Number m41, Number m42, Number m43, Number m44)
 DzMatrix4 (DzMatrix4 mat)
 DzMatrix4 ()

Methods

DzMatrix4 inverse ()
void invert ()
DzMatrix4 multiply (DzMatrix4 mat)
DzVec3 multMatrixVec (DzVec3 vec)
DzVec3 multVecMatrix (DzVec3 vec)
void preScale (DzVec3 scale)
void preTranslate (DzVec3 trans)
void rotate (DzQuat rotation)
void rotateX (Number radians)
void rotateY (Number radians)
void rotateZ (Number radians)
void scale (DzVec3 scale)
void setIdentity ()
void setTrans (DzVec3 trans)
void translate (DzVec3 trans)


Detailed Description

A 4 x 4 transformation matrix.


Constructor & Destructor Documentation

DzMatrix4::DzMatrix4 (  ) 

Constructor.

DzMatrix4::DzMatrix4 ( DzMatrix4  mat  ) 

Copy Constructor.

DzMatrix4::DzMatrix4 ( Number  m11,
Number  m12,
Number  m13,
Number  m14,
Number  m21,
Number  m22,
Number  m23,
Number  m24,
Number  m31,
Number  m32,
Number  m33,
Number  m34,
Number  m41,
Number  m42,
Number  m43,
Number  m44 
)

Constructor from a 4x4 array of elements.


Member Function Documentation

DzMatrix4 DzMatrix4::inverse (  ) 

Returns:
The inverse of the matrix.

void DzMatrix4::invert (  ) 

Sets this matrix to its inverse.

DzMatrix4 DzMatrix4::multiply ( DzMatrix4  mat  ) 

Calculates the multiplication of this matrix by the given matrix.

Parameters:
The matrix to multiply by
Returns:
The result of the multiplication

DzVec3 DzMatrix4::multMatrixVec ( DzVec3  vec  ) 

Multiplies the vector on the right side of this matrix.

Parameters:
vec The vector to multiply
Returns:
The result of the multiplication

DzVec3 DzMatrix4::multVecMatrix ( DzVec3  vec  ) 

Multiplies the vector on the left side of this matrix.

Parameters:
vec The vector to multiply
Returns:
The result of the multiplication

void DzMatrix4::preScale ( DzVec3  scale  ) 

Applies the given scale to the current matrix via pre-multiplication.

void DzMatrix4::preTranslate ( DzVec3  trans  ) 

Translates the current matrix via pre-multiplication.

void DzMatrix4::rotate ( DzQuat  rotation  ) 

Rotates the current matrix via post-multiplication.

void DzMatrix4::rotateX ( Number  radians  ) 

Rotates the current matrix around the x axis via post-multiplication.

void DzMatrix4::rotateY ( Number  radians  ) 

Rotates the current matrix around the y axis via post-multiplication.

void DzMatrix4::rotateZ ( Number  radians  ) 

Rotates the current matrix around the z axis via post-multiplication.

void DzMatrix4::scale ( DzVec3  scale  ) 

Applies the given scale to the current matrix via post-multiplication.

void DzMatrix4::setIdentity (  ) 

Sets the matrix to the identity matrix.

void DzMatrix4::setTrans ( DzVec3  trans  ) 

Sets the translation portion of the matrix to the given value.

Parameters:
trans The new value for the translation portion of the matrix

void DzMatrix4::translate ( DzVec3  trans  ) 

Translates the current matrix via post-multiplication.


Member Data Documentation

Number DzMatrix4::m11

The value of the matrix at [1, 1]

Number DzMatrix4::m12

The value of the matrix at [1, 2]

Number DzMatrix4::m13

The value of the matrix at [1, 3]

Number DzMatrix4::m14

The value of the matrix at [1, 4]

Number DzMatrix4::m21

The value of the matrix at [2, 1]

Number DzMatrix4::m22

The value of the matrix at [2, 2]

Number DzMatrix4::m23

The value of the matrix at [2, 3]

Number DzMatrix4::m24

The value of the matrix at [2, 4]

Number DzMatrix4::m31

The value of the matrix at [3, 1]

Number DzMatrix4::m32

The value of the matrix at [3, 2]

Number DzMatrix4::m33

The value of the matrix at [3, 3]

Number DzMatrix4::m34

The value of the matrix at [3, 4]

Number DzMatrix4::m41

The value of the matrix at [4, 1]

Number DzMatrix4::m42

The value of the matrix at [4, 2]

Number DzMatrix4::m43

The value of the matrix at [4, 3]

Number DzMatrix4::m44

The value of the matrix at [4, 4]


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.