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 translation

ty number <optional>
0

Vertical translation

Source code: geom/Matrix.js (Line 26)
doc_phaser
2017-02-14 10:55:13
Comments
Leave a Comment

Please login to continue.