MatrixUtil Class
+ + + + +Matrix utilities.
+-
+
- Index + + +
- Methods + + +
- Properties + + + +
Item Index
+ + +Methods
+ +-
+
+
- + _round + + + + + +
- + angle2rad + + + + + +
- + compareTransformSequence + + + + + +
- + decompose + + + + + +
- + deg2rad + + + + + +
- + getDeterminant + + + + + +
- + getMinors + + + + + +
- + getnxn + + + + + +
- + getTransformArray + + + + + +
- + getTransformFunctionArray + + + + + +
- + inverse + + + + + +
- + rad2deg + + + + + +
- + scalarMultiply + + + + + +
- + sign + + + + + +
- + transpose + + + + + +
- + vectorMatrixProduct + + + + + +
Properties
+ +-
+
+
- + _rounder + + + + + +
- + transformMethods + + + + + +
Methods
+ + +_round
+
+
+ ()
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+ Rounds values
+angle2rad
+
+
+ -
+
+
-
+
+
val+ +
+
+
Converts an angle to a radian
+Parameters:
+ +-
+
+
-
+
+
val+ Objecxt + + + + +++ + +Value to be converted to radian.
+
+
+
Returns:
+ +compareTransformSequence
+
+
+ -
+
+
-
+
+
list1+ +
+
+ -
+
+
list2+ +
+
+
Compares to arrays or transform functions to ensure both contain the same functions in the same +order.
+Parameters:
+ + +Returns:
+ +decompose
+
+
+ -
+
+
-
+
+
3x3+ +
+
+
Breaks up a 2d transform matrix into a series of transform operations.
+Parameters:
+ +-
+
+
-
+
+
3x3+ Array + + + + +++ + +matrix array
+
+
+
Returns:
+ +deg2rad
+
+
+ -
+
+
-
+
+
deg+ +
+
+
Converts a degree value to a radian.
+Parameters:
+ +-
+
+
-
+
+
deg+ Number + + + + +++ + +Degree value to be converted to radian.
+
+
+
Returns:
+ +getDeterminant
+
+
+ -
+
+
-
+
+
matrix+ +
+
+
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] | +\ /
+Parameters:
+ +-
+
+
-
+
+
matrix+ Array + + + + +++ + +An nxn matrix represented an array of vector (column) arrays. Each vector array has index for each row.
+
+
+
Returns:
+ +getMinors
+
+
+ -
+
+
-
+
+
matrix+ +
+
+ -
+
+
columnIndex+ +
+
+ -
+
+
rowIndex+ +
+
+
Returns a matrix of minors based on a matrix, column index and row index.
+Parameters:
+ +-
+
+
-
+
+
matrix+ Array + + + + +++ + +The matrix from which to extract the matrix of minors.
+
+
+ -
+
+
columnIndex+ Number + + + + +++ + +A zero-based index representing the specified column to exclude.
+
+
+ -
+
+
rowIndex+ Number + + + + +++ + +A zero-based index represeenting the specified row to exclude.
+
+
+
Returns:
+ +getnxn
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Converts 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] | +\ /
+Returns:
+ +getTransformArray
+
+
+ -
+
+
-
+
+
val+ +
+
+
Parses a transform string and returns an array of transform arrays.
+Parameters:
+ +-
+
+
-
+
+
val+ String + + + + +++ + +A transform string
+
+
+
Returns:
+ +getTransformFunctionArray
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns an array of transform arrays representing transform functions and arguments.
+Returns:
+ +inverse
+
+
+ -
+
+
-
+
+
Array+ +
+
+
Returns the inverse of a matrix
+Parameters:
+ +-
+
+
-
+
+
Array+ Object + + + + +++ + +matrix An array representing an nxn matrix
+
+
+
Returns:
+ +rad2deg
+
+
+ -
+
+
-
+
+
rad+ +
+
+
Converts a radian value to a degree.
+Parameters:
+ +-
+
+
-
+
+
rad+ Number + + + + +++ + +Radian value to be converted.
+
+
+
Returns:
+ +scalarMultiply
+
+
+ -
+
+
-
+
+
matrix+ +
+
+ -
+
+
multiplier+ +
+
+
Multiplies a matrix by a numeric value.
+Parameters:
+ + +Returns:
+ +sign
+
+
+ -
+
+
-
+
+
val+ +
+
+
Returns the sign of value
+Parameters:
+ +-
+
+
-
+
+
val+ Number + + + + +++ + +value to be interpreted
+
+
+
Returns:
+ +transpose
+
+
+ -
+
+
-
+
+
matrix+ +
+
+
Returns the transpose for an nxn matrix.
+Parameters:
+ +-
+
+
-
+
+
matrix+ Object + + + + +++ + +An nxn matrix represented by an array of vector arrays.
+
+
+
Returns:
+ +vectorMatrixProduct
+
+
+ -
+
+
-
+
+
vector+ +
+
+ -
+
+
matrix+ +
+
+
Multiplies a vector and a matrix
+Parameters:
+ + +Returns:
+ +Properties
+ + +_rounder
+ Unknown
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Used as value for the _rounding method.
+transformMethods
+ Object
+
+
+
+
+
+
+
+
+
+
+
+ Mapping of possible transform method names.
+