Home

# Library goog.vec.Mat3

Function Summary
| `addMat(?goog.vec.Mat3.AnyType mat0, ?goog.vec.Mat3.AnyType mat1, ?goog.vec.Mat3.AnyType resultMat) ⇒ !goog.vec.Mat3.AnyType` Performs a per-component addition of the matrices mat0 and mat1, storing the result into resultMat.
| `create() ⇒ !goog.vec.Mat3.Type` Creates the array representation of a 3x3 matrix of Float32. The returned matrix is cleared to all zeros.
| `createFloat32() ⇒ !goog.vec.Mat3.Float32` Creates the array representation of a 3x3 matrix of Float32. The use of the array directly instead of a class reduces overhead. The returned matrix is cleared to all zeros.
| `createFloat32FromArray(?goog.vec.Mat3.AnyType matrix) ⇒ !goog.vec.Mat3.Float32` Creates a 3x3 matrix of Float32 initialized from the given array.
| `createFloat32FromValues(number v00, number v10, number v20, number v01, number v11, number v21, number v02, number v12, number v22) ⇒ !goog.vec.Mat3.Float32` Creates a 3x3 matrix of Float32 initialized from the given values.
| `createFloat32Identity() ⇒ !goog.vec.Mat3.Float32` Creates a 3x3 identity matrix of Float32.
| `createFloat64() ⇒ !goog.vec.Mat3.Float64` Creates the array representation of a 3x3 matrix of Float64. The returned matrix is cleared to all zeros.
| `createFloat64FromArray(?goog.vec.Mat3.AnyType matrix) ⇒ !goog.vec.Mat3.Float64` Creates a 3x3 matrix of Float64 initialized from the given array.
| `createFloat64FromValues(number v00, number v10, number v20, number v01, number v11, number v21, number v02, number v12, number v22) ⇒ !goog.vec.Mat3.Float64` Creates a 3x3 matrix of Float64 initialized from the given values.
| `createFloat64Identity() ⇒ !goog.vec.Mat3.Float64` Creates a 3x3 identity matrix of Float64.
| `createFromArray(?goog.vec.Mat3.Mat3Like matrix) ⇒ !goog.vec.Mat3.Type` Creates a 3x3 matrix of Float32 initialized from the given array.
| `createFromValues(number v00, number v10, number v20, number v01, number v11, number v21, number v02, number v12, number v22) ⇒ !goog.vec.Mat3.Type` Creates a 3x3 matrix of Float32 initialized from the given values.
| `createIdentity() ⇒ !goog.vec.Mat3.Type` Creates the array representation of a 3x3 matrix of Float32. The returned matrix is cleared to all zeros.
| `createNumber() ⇒ !goog.vec.Mat3.Number` Creates the array representation of a 3x3 matrix of Number. The returned matrix is cleared to all zeros.
| `createNumberIdentity() ⇒ !goog.vec.Mat3.Number` Creates a 3x3 identity matrix of Number. The returned matrix is cleared to all zeros.
| `equals(?goog.vec.Mat3.AnyType mat0, ?goog.vec.Mat3.AnyType mat1) ⇒ boolean` Returns true if the components of mat0 are equal to the components of mat1.
| `getColumn(?goog.vec.Mat3.AnyType mat, number column, ?goog.vec.Vec3.AnyType vec)` Retrieves the specified column from the matrix into the given vector array.
| `getColumns(?goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec0, ?goog.vec.Vec3.AnyType vec1, ?goog.vec.Vec3.AnyType vec2)` Retrieves the column values from the given matrix into the given vector elements.
| `getElement(?goog.vec.Mat3.AnyType mat, number row, number column) ⇒ number` Retrieves the element at the requested row and column.
| `getRow(?goog.vec.Mat3.AnyType mat, number row, ?goog.vec.Vec3.AnyType vec)` Retrieves the row values into the given vector.
| `getRows(?goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec0, ?goog.vec.Vec3.AnyType vec1, ?goog.vec.Vec3.AnyType vec2)` Retrieves the rows of the matrix into the supplied vectors.
| `invert(?goog.vec.Mat3.AnyType mat0, ?goog.vec.Mat3.AnyType resultMat) ⇒ boolean` Computes the inverse of mat0 storing the result into resultMat. If the inverse is defined, this function returns true, false otherwise.
| `makeIdentity(?goog.vec.Mat3.AnyType mat) ⇒ !goog.vec.Mat3.AnyType` Makes the given 3x3 matrix the identity matrix.
| `makeRotate(!goog.vec.Mat3.AnyType mat, number angle, number ax, number ay, number az) ⇒ !goog.vec.Mat3.AnyType` Makes the given 3x3 matrix a rotation matrix with the given rotation angle about the axis defined by the vector (ax, ay, az).
| `makeScale(!goog.vec.Mat3.AnyType mat, number x, number y, number z) ⇒ !goog.vec.Mat3.AnyType` Makes the given 3x3 matrix a scale matrix with x, y, and z scale factors.
| `makeTranslate(!goog.vec.Mat3.AnyType mat, number x, number y) ⇒ !goog.vec.Mat3.AnyType` Makes the given 3x3 matrix a translation matrix with x and y translation values.
| `makeZero(?goog.vec.Mat3.AnyType mat) ⇒ !goog.vec.Mat3.AnyType` Makes the given 3x3 matrix the zero matrix.
| `multMat(?goog.vec.Mat3.AnyType mat0, ?goog.vec.Mat3.AnyType mat1, ?goog.vec.Mat3.AnyType resultMat) ⇒ !goog.vec.Mat3.AnyType` Multiplies the two matrices mat0 and mat1 using matrix multiplication, storing the result into resultMat.
| `multScalar(?goog.vec.Mat3.AnyType mat, number scalar, ?goog.vec.Mat3.AnyType resultMat) ⇒ !goog.vec.Mat3.AnyType` Multiplies matrix mat0 with the given scalar, storing the result into resultMat.
| `multVec3(!goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec, ?goog.vec.Vec3.AnyType resultVec) ⇒ !goog.vec.Vec3.AnyType` Transforms the given vector with the given matrix storing the resulting, transformed matrix into resultVec.
| `setColumn(?goog.vec.Mat3.AnyType mat, number column, ?goog.vec.Vec3.AnyType vec)` Sets the specified column with the value from the supplied array.
| `setColumnValues(?goog.vec.Mat3.AnyType mat, number column, number v0, number v1, number v2)` Sets the specified column with the supplied values.
| `setColumns(?goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec0, ?goog.vec.Vec3.AnyType vec1, ?goog.vec.Vec3.AnyType vec2)` Sets the columns of the matrix from the set of vector elements.
| `setDiagonal(?goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec)` Sets the diagonal values of the matrix from the given vector.
| `setDiagonalValues(?goog.vec.Mat3.AnyType mat, number v00, number v11, number v22) ⇒ !goog.vec.Mat3.AnyType` Sets the diagonal values of the matrix from the given values.
| `setElement(?goog.vec.Mat3.AnyType mat, number row, number column, number value)` Sets the element at the requested row and column.
| `setFromArray(?goog.vec.Mat3.AnyType mat, ?goog.vec.Mat3.AnyType values) ⇒ !goog.vec.Mat3.AnyType` Sets the matrix from the array of values stored in column major order.
| `setFromRowMajorArray(?goog.vec.Mat3.AnyType mat, ?goog.vec.Mat3.AnyType values) ⇒ !goog.vec.Mat3.AnyType` Sets the matrix from the array of values stored in row major order.
| `setFromValues(?goog.vec.Mat3.AnyType mat, number v00, number v10, number v20, number v01, number v11, number v21, number v02, number v12, number v22) ⇒ !goog.vec.Mat3.AnyType` Initializes the matrix from the set of values. Note the values supplied are in column major order.
| `setRow(?goog.vec.Mat3.AnyType mat, number row, ?goog.vec.Vec3.AnyType vec)` Sets the row values from the supplied vector.
| `setRowValues(?goog.vec.Mat3.AnyType mat, number row, number v0, number v1, number v2)` Sets the row values from the supplied values.
| `setRows(?goog.vec.Mat3.AnyType mat, ?goog.vec.Vec3.AnyType vec0, ?goog.vec.Vec3.AnyType vec1, ?goog.vec.Vec3.AnyType vec2)` Sets the rows of the matrix from the supplied vectors.
| `subMat(?goog.vec.Mat3.AnyType mat0, ?goog.vec.Mat3.AnyType mat1, ?goog.vec.Mat3.AnyType resultMat) ⇒ !goog.vec.Mat3.AnyType` Performs a per-component subtraction of the matrices mat0 and mat1, storing the result into resultMat.
| `transpose(?goog.vec.Mat3.AnyType mat, ?goog.vec.Mat3.AnyType resultMat) ⇒ !goog.vec.Mat3.AnyType` Transposes the given matrix mat storing the result into resultMat.