A default (identity) matrix
A temp matrix
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 new point, transformed through this matrix
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 new point, inverse-transformed through this matrix
Creates a new Matrix object with the same values as this one.
A copy of this matrix. Good for chaining method calls.
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.
This matrix. Good for chaining method calls.
Inverts this matrix
This matrix. Good for chaining method calls.
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.
The amount to scale horizontally
The amount to scale vertically
This matrix. Good for chaining method calls.
sets the matrix properties
Matrix component
Matrix component
Matrix component
Matrix component
Matrix component
Matrix component
This matrix. Good for chaining method calls.
Sets the matrix based on all the available properties
Position on the x axis
Position on the y axis
Pivot on the x axis
Pivot on the y axis
Scale on the x axis
Scale on the y axis
Rotation in radians
Skew on the x axis
Skew on the y axis
This matrix. Good for chaining method calls.
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.
How much to translate x by
How much to translate y by
This matrix. Good for chaining method calls.
Generated using TypeDoc
The PixiJS Matrix as a class makes it a lot faster.
Here is a representation of it:
PIXI