Class: Transform

PIXI. Transform

Generic class to deal with traditional 2D matrix transforms
local transformation is calculated from position,scale,skew and rotation

new PIXI.Transform()

Extends

Members

rotation

Set the rotation of the transform.

updateWorldTransform

Updates the values of the object and applies the parent's transform.

Methods

setFromMatrix(matrix)

Decomposes a matrix and sets the transforms properties based on it.

Name Type Description
matrix PIXI.Matrix

The matrix to decompose

updateLocalTransform()

Updates only local matrix

updateTransform(parentTransform)

Updates the values of the object and applies the parent's transform.

Name Type Description
parentTransform PIXI.Transform

The transform of the parent of this object