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

localTransform PIXI.Matrix inherited

The local matrix transform

pivot PIXI.Point

The pivot point of the displayObject that it rotates around.

position PIXI.Point

The coordinate of the object relative to the local coordinates of the parent.

rotation number

The rotation of the object in radians.

scale PIXI.Point

The scale factor of the object.

The skew amount, on the x and y axis.

updateWorldTransform inherited

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

worldTransform PIXI.Matrix inherited

The global matrix transform. It can be swapped temporarily by some functions like getLocalBounds()

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 () overrides

Updates only local matrix

updateTransform (parentTransform) overrides

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