Matrix#scale()

scale(x, y) → {Phaser.Matrix} Applies a scale transformation to this matrix. Parameters Name Type Description x number The amount to scale horizontally. y number The amount to scale vertically. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 297)

Matrix#rotate()

rotate(angle) → {Phaser.Matrix} Applies a rotation transformation to this matrix. Parameters Name Type Description angle number The angle to rotate by, given in radians. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 318)

Matrix#Matrix

new Matrix(a, b, c, d, tx, ty) The Matrix is a 3x3 matrix mostly used for display transforms within the renderer. It is represented like so: | a | b | tx | | c | d | ty | | 0 | 0 | 1 | Parameters Name Type Argument Default Description a number <optional> 1 Horizontal scaling b number <optional> 0 Horizontal skewing c number <optional> 0 Vertical skewing d number <optional> 1 Vertical scaling tx number <optional> 0 Horizontal translat

Matrix#identity()

identity() → {Phaser.Matrix} Resets this Matrix to an identity (default) matrix. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 371)

Matrix#fromArray()

fromArray(array) → {Phaser.Matrix} Sets the values of this Matrix to the values in the given array. The Array elements should be set as follows: a = array[0]b = array[1]c = array[3]d = array[4]tx = array[2]ty = array[5] Parameters Name Type Description array Array The array to copy from. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 81)

Matrix#d

d : number Default Value 1 Source code: geom/Matrix.js (Line 57)

Matrix#copyTo()

copyTo(matrix) → {Phaser.Matrix} Copies the properties from this Matrix to the given Matrix. Parameters Name Type Description matrix Phaser.Matrix The Matrix to copy from. Returns Phaser.Matrix - The destination Matrix object. Source code: geom/Matrix.js (Line 157)

Matrix#copyFrom()

copyFrom(matrix) → {Phaser.Matrix} Copies the properties from the given Matrix into this Matrix. Parameters Name Type Description matrix Phaser.Matrix The Matrix to copy from. Returns Phaser.Matrix - This Matrix object. Source code: geom/Matrix.js (Line 172)

Matrix#clone()

clone(output) → {Phaser.Matrix} Creates a new Matrix object based on the values of this Matrix.If you provide the output parameter the values of this Matrix will be copied over to it.If the output parameter is blank a new Matrix object will be created. Parameters Name Type Argument Description output Phaser.Matrix <optional> If provided the values of this Matrix will be copied to it, otherwise a new Matrix object is created. Returns Phaser.Matrix - A clone of this Matrix. So

Matrix#c

c : number Default Value 0 Source code: geom/Matrix.js (Line 51)