The X Toolkit API

X.matrix

/**
* @see goog.vec.Mat4.cloneFloat32
*/
X.matrix.clone();
/**
* @see goog.vec.Mat4.determinant
*/
X.matrix.determinant();
/**
* @see goog.vec.Mat4.createFloat32Identity
*/
X.matrix.identity();
/**
* @see goog.vec.Mat4.invert
*/
X.matrix.invert();
/**
* @see goog.vec.Mat4.makeFrustum
*/
X.matrix.makeFrustum();
/**
* Makes the given 4x4 matrix a modelview matrix of a camera so that
* the camera is 'looking at' the given center point.
*
* @param {!Float32Array} mat The matrix.
* @param {!X.vector} eyePt The position of the eye point
*     (camera origin).
* @param {!X.vector} centerPt The point to aim the camera at.
* @param {!X.vector} worldUpVec The vector that identifies
*     the up direction for the camera.
* @return {!Float32Array} return mat so that operations can be
*     chained.
*/
var makeLookAt = X.matrix.makeLookAt($MAT, $EYEPT, $CENTERPT, $WORLDUPVEC);
/**
* @see goog.vec.Mat4.makeOrtho
*/
X.matrix.makeOrtho();
/**
* @see goog.vec.Mat4.makePerspective
*/
X.matrix.makePerspective();
/**
* @see goog.vec.Mat4.multMat
*/
X.matrix.multiply();
/**
* Multiply the matrix by a vector.
*
* @param {!Float32Array} mat The matrix.
* @param {!number} x The x coordinate of the vector.
* @param {!number} y The y coordinate of the vector.
* @param {!number} z The z coordinate of the vector.
* @return {!X.vector} The resulting vector.
*/
var multiplyByVector = X.matrix.multiplyByVector($MAT, $X, $Y, $Z);
/**
* @see goog.vec.Mat4.rotate
*/
X.matrix.rotate();
/**
* @see goog.vec.Mat4.rotateX
*/
X.matrix.rotateX();
/**
* @see goog.vec.Mat4.rotateY
*/
X.matrix.rotateY();
/**
* @see goog.vec.Mat4.rotateZ
*/
X.matrix.rotateZ();
/**
* @see goog.vec.Mat4.scale
*/
X.matrix.scale();
/**
* Swap two columns of a matrix.
*
* @param {!Float32Array} mat The matrix.
* @param {!number} col1 The index of the first column.
* @param {!number} col2 The index of the second column.
* @return {!Float32Array} The resulting matrix.
*/
var swapCols = X.matrix.swapCols($MAT, $COL1, $COL2);
/**
* Swap two rows of a matrix.
*
* @param {!Float32Array} mat The matrix.
* @param {!number} row1 The index of the first row.
* @param {!number} row2 The index of the second row.
* @return {!Float32Array} The resulting matrix.
*/
var swapRows = X.matrix.swapRows($MAT, $ROW1, $ROW2);
/**
* @see goog.vec.Mat4.translate
*/
X.matrix.translate();
/**
* @see goog.vec.Mat4.transpose
*/
X.matrix.transpose();


CONSTRUCTORS

PROPERTIES

GETTERS/SETTERS

FUNCTIONS

STATIC
clone
determinant
identity
invert
makeFrustum
makeLookAt
makeOrtho
makePerspective
multiply
multiplyByVector
rotate
rotateX
rotateY
rotateZ
scale
swapCols
swapRows
translate
transpose



SOURCECODE