The DynamicMatrix class calculates and stores a matrix based on given values. This class supports the ColorMatrixFilter and can be extended by the ColorMatrix class.
See also:
[flxanimate.motion.AdjustColor]
Static variables
Constructor
Methods
add(inMatrix:DynamicMatrix):Bool
Adds the current matrix with a specified matrix. The
current matrix becomes the result of the addition (in other
words the DynamicMatrix.add() method does
not create a new matrix to contain the result).
Parameters:
inMatrix | The matrix to add to the current matrix. |
|---|
Returns:
A Boolean value indicating whether the addition succeeded (true)
or failed (false). If the dimensions of the matrices are not
the same, DynamicMatrix.add() returns false.
getWidth():Int
Returns the number of columns in the current matrix.
Returns:
The number of columns.
See also:
getHeight
multiply(inMatrix:DynamicMatrix, order:Int = 0):Bool
Multiplies the current matrix with a specified matrix; and either
appends or prepends the specified matrix. Use the DynamicMatrix.multiply() method to
append
Parameters:
inMatrix | The matrix to add to the current matrix. |
|---|---|
order | Specifies whether to append or prepend the matrix from the
|
Returns:
A Boolean value indicating whether the multiplication succeeded (true) or
failed (false). The value is false if either the current matrix or
specified matrix (the inMatrix parameter) is null, or if the order is to append and the
current matrix's width is not the same as the supplied matrix's height; or if the order is to prepend
and the current matrix's height is not equal to the supplied matrix's width.
See also: