Class Index | File Index

Classes


Class CAAT.Math.Matrix3


Defined in: Matrix3.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
An array of 16 numbers.
 
An Array of 4 Array of 4 numbers.
Method Summary
Method Attributes Method Name and Description
<private>  
 
Calculate this matrix's determinant.
 
copy(m)
Copy a given matrix values into this one's.
 
 
Creates a new matrix being a copy of this matrix.
 
Return a new matrix which is this matrix's inverse matrix.
 
Get this matri'x internal representation data.
 
Set this matrix to identity matrix.
 
initialize(x0, y0, z0, x1, y1, z1, x2, y2, z2)
 
initWithMatrix(matrixData)
 
Multiplies this matrix by another matrix.
 
Multiply this matrix by a scalar.
 
Pre multiplies this matrix by a given matrix.
 
rotate(xy, xz, yz)
Creates a matrix to represent arbitrary rotations around the given planes.
 
rotateModelView(xy, xz, yz)
Set this matrix as the rotation matrix around the given axes.
 
Multiply this matrix by a created rotation matrix.
 
Multiply this matrix by a created rotation matrix.
 
Multiply this matrix by a created rotation matrix.
 
scale(sx, sy, sz)
 
setRotate(xy, xz, yz)
 
setScale(sx, sy, sz)
 
setTranslate(x, y, z)
Set this matrix translation values to be the given parameters.
 
 
translate(x, y, z)
Create a translation matrix.
Class Detail
CAAT.Math.Matrix3()
Field Detail
fmatrix
An array of 16 numbers.

matrix
An Array of 4 Array of 4 numbers.
Method Detail
<private> __init()

{number} calculateDeterminant()
Calculate this matrix's determinant.
Returns:
{number} matrix determinant.

copy(m)
Copy a given matrix values into this one's.
Parameters:
m
{CAAT.Matrix} a matrix
Returns:
this

flatten()

{CAAT.Matrix3} getClone()
Creates a new matrix being a copy of this matrix.
Returns:
{CAAT.Matrix3} a newly allocated matrix object.

{CAAT.Matrix3} getInverse()
Return a new matrix which is this matrix's inverse matrix.
Returns:
{CAAT.Matrix3} a new matrix.

getMatrix()
Get this matri'x internal representation data. The bakced structure is a 4x4 array of number.

identity()
Set this matrix to identity matrix.
Returns:
this

initialize(x0, y0, z0, x1, y1, z1, x2, y2, z2)
Parameters:
x0
y0
z0
x1
y1
z1
x2
y2
z2

initWithMatrix(matrixData)
Parameters:
matrixData

multiply(n)
Multiplies this matrix by another matrix.
Parameters:
n
{CAAT.Matrix3} a CAAT.Matrix3 object.
Returns:
this

multiplyScalar(scalar)
Multiply this matrix by a scalar.
Parameters:
scalar
{number} scalar value
Returns:
this

premultiply(m)
Pre multiplies this matrix by a given matrix.
Parameters:
m
{CAAT.Matrix3} a CAAT.Matrix3 object.
Returns:
this

{CAAT.Matrix3} rotate(xy, xz, yz)
Creates a matrix to represent arbitrary rotations around the given planes.
Parameters:
xy
{number} radians to rotate around xy plane.
xz
{number} radians to rotate around xz plane.
yz
{number} radians to rotate around yz plane.
Returns:
{CAAT.Matrix3} a newly allocated matrix.

rotateModelView(xy, xz, yz)
Set this matrix as the rotation matrix around the given axes.
Parameters:
xy
{number} radians of rotation around z axis.
xz
{number} radians of rotation around y axis.
yz
{number} radians of rotation around x axis.
Returns:
this

rotateXY(xy)
Multiply this matrix by a created rotation matrix. The rotation matrix is set up to rotate around xy axis.
Parameters:
xy
{Number} radians to rotate.
Returns:
this

rotateXZ(xz)
Multiply this matrix by a created rotation matrix. The rotation matrix is set up to rotate around xz axis.
Parameters:
xz
{Number} radians to rotate.
Returns:
this

rotateYZ(yz)
Multiply this matrix by a created rotation matrix. The rotation matrix is set up to rotate aroind yz axis.
Parameters:
yz
{Number} radians to rotate.
Returns:
this

scale(sx, sy, sz)
Parameters:
sx
sy
sz

setRotate(xy, xz, yz)
Parameters:
xy
xz
yz

setScale(sx, sy, sz)
Parameters:
sx
sy
sz

setTranslate(x, y, z)
Set this matrix translation values to be the given parameters.
Parameters:
x
{number} x component of translation point.
y
{number} y component of translation point.
z
{number} z component of translation point.
Returns:
this

transformCoord(point)
Parameters:
point

{CAAT.Matrix3} translate(x, y, z)
Create a translation matrix.
Parameters:
x
{number}
y
{number}
z
{number}
Returns:
{CAAT.Matrix3} a new matrix.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)