Back

Matrix

JS Py
Hello World
Content:
- Properties
- Methods

Wrapper class for PIXI.js matrix.

mtx = new Matrix( ) → Object: Matrix

Construct with new Matrix()

Properties

The following properties are available on the Matrix object:

mtxObject: Pixi Matrix

Methods

The following methods are available on the Matrix object:

Scale( sx, sy )
Set( a, b, c, d, tx, ty )
Number
mtx.mtx
The PIXI.js Matrix
mtx.Rotate
Rotate by a given angle around the axes origin (0,0)
mtx.Scale
Scale by a given amount on both axes
mtx.Set
Set the matrix elements to specific values
mtx.Skew
Skew / Distort the object on both axes
mtx.Transform
Shortcut to app.Vibrate)
mtx.Translate
Move by a given amount on both axes