DzMatrix3 Class Reference
[Basic Objects]

A 4 x 3 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

Constructors



 DzMatrix3 (Number m11, Number m12, Number m13, Number m14, Number m21, Number m22, Number m23, Number m24, Number m31, Number m32, Number m33, Number m34)
 DzMatrix3 (DzMatrix3 mat)
 DzMatrix3 ()

Methods

DzMatrix3 inverse ()
DzMatrix3 multiply (DzMatrix3 mat)
DzVec3 multMatrixVec (DzVec3 vec)
void noRot ()
void noScale ()
void noTrans ()
void orthogonalize ()
void preRotate (DzQuat rotation)
void preRotateX (Number radians)
void preRotateY (Number radians)
void preRotateZ (Number radians)
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 3 transformation matrix.


Constructor & Destructor Documentation

DzMatrix3::DzMatrix3 (  ) 

Constructor.

DzMatrix3::DzMatrix3 ( DzMatrix3  mat  ) 

Copy Constructor.

DzMatrix3::DzMatrix3 ( Number  m11,
Number  m12,
Number  m13,
Number  m14,
Number  m21,
Number  m22,
Number  m23,
Number  m24,
Number  m31,
Number  m32,
Number  m33,
Number  m34 
)

Constructor from a 3x4 array of elements


Member Function Documentation

DzMatrix3 DzMatrix3::inverse (  ) 

Returns:
The inverse of the matrix.

DzMatrix3 DzMatrix3::multiply ( DzMatrix3  mat  ) 

Returns:
The result of multiplying the given matrix through this matrix

DzVec3 DzMatrix3::multMatrixVec ( DzVec3  vec  ) 

Returns:
The result of multiplying the given vector through this matrix

void DzMatrix3::noRot (  ) 

Clears any rotation value in the matrix.

void DzMatrix3::noScale (  ) 

Clears any scale value in the matrix.

void DzMatrix3::noTrans (  ) 

Clears any translation value in the matrix.

void DzMatrix3::orthogonalize (  ) 

Orthogonalizes the matrix.

void DzMatrix3::preRotate ( DzQuat  rotation  ) 

Rotates the current matrix via pre-multiplication.

void DzMatrix3::preRotateX ( Number  radians  ) 

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

void DzMatrix3::preRotateY ( Number  radians  ) 

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

void DzMatrix3::preRotateZ ( Number  radians  ) 

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

void DzMatrix3::preTranslate ( DzVec3  trans  ) 

Translates the current matrix via pre-multiplication.

void DzMatrix3::rotate ( DzQuat  rotation  ) 

Rotates the current matrix via post-multiplication.

void DzMatrix3::rotateX ( Number  radians  ) 

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

void DzMatrix3::rotateY ( Number  radians  ) 

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

void DzMatrix3::rotateZ ( Number  radians  ) 

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

void DzMatrix3::scale ( DzVec3  scale  ) 

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

void DzMatrix3::setIdentity (  ) 

Sets the matrix to the identity matrix.

void DzMatrix3::setTrans ( DzVec3  trans  ) 

Sets the matrix to the given translation.

void DzMatrix3::translate ( DzVec3  trans  ) 

Translates the current matrix via post-multiplication.


Member Data Documentation

Number DzMatrix3::m11

The value of the matrix at [1, 1]

Number DzMatrix3::m12

The value of the matrix at [1, 2]

Number DzMatrix3::m13

The value of the matrix at [1, 3]

Number DzMatrix3::m14

The value of the matrix at [1, 4]

Number DzMatrix3::m21

The value of the matrix at [2, 1]

Number DzMatrix3::m22

The value of the matrix at [2, 2]

Number DzMatrix3::m23

The value of the matrix at [2, 3]

Number DzMatrix3::m24

The value of the matrix at [2, 4]

Number DzMatrix3::m31

The value of the matrix at [3, 1]

Number DzMatrix3::m32

The value of the matrix at [3, 2]

Number DzMatrix3::m33

The value of the matrix at [3, 3]

Number DzMatrix3::m34

The value of the matrix at [3, 4]


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.