B.Math.Matrix3()Represents a column-major 3x3 matrix.
To create the object use B.Math.makeMatrix3(). Note: the order of transformations coincides with the order in which the matrices are multiplied (from left to right). CONSTANTS:{B.Math.Matrix3} ZERO = [0,0,0, 0,0,0, 0,0,0] Zero matrix. {B.Math.Matrix3} IDENTITY = [1,0,0, 0,1,0, 0,0,1] Identity matrix. PROPERTIES:{Array.<number>} m Matrix element array. METHODS:clone() Clones this matrix to a new matrix. RETURNS:this copy(matrix) Copies a given matrix into this matrix. set(m00, m01, m02, m10, m11, m12, m20, m21, m22) Sets all elements of this matrix. PARAMETERS:{number} m00 {number} m01 {number} m02 {number} m10 {number} m11 {number} m12 {number} m20 {number} m21 {number} m22 RETURNS:this get(row, column) Gets an element by its row and column indices. PARAMETERS:{number} row index [0, 2] {number} column index [0, 2] RETURNS:{number} THROWS:{Error} if the index is out of range setAxisX(axis) Sets the X-axis vector. getAxisX(result) Returns the X-axis vector. setAxisY(axis) Sets the Y-axis vector. getAxisY(result) Returns the Y-axis vector. setAxisZ(axis) Sets the Z-axis vector. getAxisZ(result) Returns the Z-axis vector. extractScale(result) Extracts scale factors. fromArray(array, offset) Sets this matrix elements from a part of array. PARAMETERS:{Array.<number>} array {number} [offset] = 0 RETURNS:{number} new offset toArray(array, offset) Sets this matrix elements to a part of array. PARAMETERS:{Array.<number>} array {number} [offset] = 0 RETURNS:{number} new offset fromAngles(angles) Sets this matrix from Euler angles. fromQuaternion(q) Sets this matrix from a quaternion. identity() Sets this matrix to the identity. RETURNS:this rotationX(angle) Sets this matrix to X-axis rotation transform. rotationY(angle) Sets this matrix to Y-axis rotation transform. rotationZ(angle) Sets this matrix to Z-axis rotation transform. rotationAxis(axis, angle) Sets this matrix to arbitrary axis rotation transform. scale(x, y, z) Sets this matrix to scale transform. add(matrix) Adds a matrix to this matrix. mulScalar(scalar) Multiplies this matrix by a given scalar. mulMatrices(a, b) Multiplies two given matrices and sets the result to this. mul(value) Multiplies this matrix by a given matrix or a scalar. determinant() Calculates the determinant of this matrix. RETURNS:{number} transpose() Transposes this matrix. RETURNS:this invert() Inverts this matrix. equal(matrix) Checks for strict equality of this matrix and another matrix. |
CONSTANTS:PROPERTIES:METHODS: |