Appends the given Matrix to this Matrix.
Appends the given Matrix to this Matrix.
the given Matrix
This matrix. Good for chaining method calls.
Get a new position with the current transformation applied.
Get a new position with the current transformation applied. Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering)
The origin
The point that the new position is assigned to (allowed to be same as input)
The new point, transformed through this matrix
Get a new position with the inverse of the current transformation applied.
Get a new position with the inverse of the current transformation applied. Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)
The origin
The point that the new position is assigned to (allowed to be same as input)
The new point, inverse-transformed through this matrix
Creates a new Matrix object with the same values as this one.
Creates a new Matrix object with the same values as this one.
A copy of this matrix. Good for chaining method calls.
Changes the values of the given matrix to be the same as the ones in this matrix.
Changes the values of the given matrix to be the same as the ones in this matrix.
The matrix given in parameter with its values updated.
Creates a Matrix object based on the given array.
Creates a Matrix object based on the given array. The Element to Matrix mapping order is as follows: a = array[0] b = array[1] c = array[3] d = array[4] tx = array[2] ty = array[5]
The array that the matrix will be populated from.
Resets this Matrix to an identity (default) matrix.
Resets this Matrix to an identity (default) matrix.
This matrix. Good for chaining method calls.
Inverts this matrix.
Inverts this matrix.
This matrix. Good for chaining method calls.
Prepends the given Matrix to this Matrix.
Prepends the given Matrix to this Matrix.
the given Matrix
This matrix. Good for chaining method calls.
Applies a rotation transformation to the matrix.
Applies a rotation transformation to the matrix.
The angle in radians.
This matrix. Good for chaining method calls.
Applies a scale transformation to the matrix.
Applies a scale transformation to the matrix.
The amount to scale horizontally.
The amount to scale vertically.
This matrix. Good for chaining method calls.
Creates an array from the current Matrix object.
Creates an array from the current Matrix object.
Whether we need to transpose the matrix or not.
The newly created array which contains the matrix.
Translates the matrix on the x and y.
Translates the matrix on the x and y.
the X-coordinate delta
the Y-coordinate delta
This matrix. Good for chaining method calls.
The pixi Matrix class as an object, which makes it a lot faster, here is a representation of it:
https://phaser.io/docs/2.2.2/PIXI.Matrix.html