Matrix Class
The Matrix class is now an object, which makes it a lot faster, here is a representation of it : | a | b | tx| | c | d | ty| | 0 | 0 | 1 |
Constructor
Matrix
()
Methods
fromArray
(
-
array
Creates a pixi matrix object based on the array given as a parameter
Parameters:
-
array
ArrayThe array that the matrix will be filled with
toArray
(
Array
-
transpose
Creates an array from the current Matrix object
Parameters:
-
transpose
BooleanWhether we need to transpose the matrix or not
Returns:
Array:
the newly created array which contains the matrix