Matrix utilities.
_roundRounds values
angle2radval
Converts an angle to a radian
val
Objecxt
Value to be converted to radian.
Number
compareTransformSequencelist1
list2
Compares to arrays or transform functions to ensure both contain the same functions in the same order.
Boolean
decomposematrix
Breaks up a 2d transform matrix into a series of transform operations.
matrix
Array
A 3x3 multidimensional array
Array
deg2raddeg
Converts a degree value to a radian.
deg
Number
Degree value to be converted to radian.
Number
getDeterminantmatrix
Returns the determinant of a given matrix.
/ \ | matrix[0][0] matrix[1][0] matrix[2][0] | | matrix[0][1] matrix[1][1] matrix[2][1] | | matrix[0][2] matrix[1][2] matrix[2][2] | | matrix[0][3] matrix[1][3] matrix[2][3] | \ /
matrix
Array
An nxn matrix represented an array of vector (column) arrays. Each vector array has index for each row.
Number
getMinorsmatrix
columnIndex
rowIndex
Returns a matrix of minors based on a matrix, column index and row index.
Array
getnxnConverts a transform object to an array of column vectors.
/ \ | matrix[0][0] matrix[1][0] matrix[2][0] | | matrix[0][1] matrix[1][1] matrix[2][1] | | matrix[0][2] matrix[1][2] matrix[2][2] | \ /
Array
getTransformArrayval
Parses a transform string and returns an array of transform arrays.
val
String
A transform string
Array
getTransformFunctionArrayReturns an array of transform arrays representing transform functions and arguments.
Array
inverseArray
Returns the inverse of a matrix
Array
Object
matrix An array representing an nxn matrix
Array
/ \ | matrix[0][0] matrix[1][0] matrix[2][0] | | matrix[0][1] matrix[1][1] matrix[2][1] | | matrix[0][2] matrix[1][2] matrix[2][2] | | matrix[0][3] matrix[1][3] matrix[2][3] | \ /
rad2degrad
Converts a radian value to a degree.
rad
Number
Radian value to be converted.
Number
scalarMultiplymatrix
multiplier
Multiplies a matrix by a numeric value.
Array
signval
Returns the sign of value
val
Number
value to be interpreted
Number
transposematrix
Returns the transpose for an nxn matrix.
matrix
Object
An nxn matrix represented by an array of vector arrays.
Array
_rounderUsed as value for the _rounding method.