Navigation
These archived docs are for Phaser 2.3.0 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

Matrix

new Matrix()

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 |

Source code: geom/Matrix.js (Line 15)

Public Properties

a : number

Default Value
  • 1
Source code: geom/Matrix.js (Line 22)

b : number

Default Value
  • 0
Source code: geom/Matrix.js (Line 29)

c : number

Default Value
  • 0
Source code: geom/Matrix.js (Line 36)

d : number

Default Value
  • 1
Source code: geom/Matrix.js (Line 43)

tx : number

Default Value
  • 0
Source code: geom/Matrix.js (Line 50)

ty : number

Default Value
  • 0
Source code: geom/Matrix.js (Line 57)

[readonly] type : number

The const type of this object.

Source code: geom/Matrix.js (Line 63)