Class: Transform

PIXI.Transform

Transform that takes care about its versions

new PIXI.Transform ()

Members

PIXI.Transform.IDENTITY PIXI.Transform static

A default (identity) transform

_currentLocalID number protected

The locally unique ID of the local transform used to calculate the current local transformation matrix.

_cx number protected

The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

_cy number protected

The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

_localID number protected

The locally unique ID of the local transform.

_parentID number protected

The locally unique ID of the parent's world transform used to calculate the current world transformation matrix.

_rotation number protected

The rotation amount.

_sx number protected

The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

_sy number protected

The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

_worldID number protected

The locally unique ID of the world transform.

localTransform PIXI.Matrix

The local transformation matrix.

The pivot point of the displayObject that it rotates around.

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

rotation number

The rotation of the object in radians.

The scale factor of the object.

The skew amount, on the x and y axis.

worldTransform PIXI.Matrix

The world transformation matrix.

Methods

onChange () protected

Called when a value changes.

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 the local transformation matrix.

updateSkew () protected

Called when the skew or the rotation changes.

updateTransform (parentTransform)

Updates the local and the world transformation matrices.

Name Type Description
parentTransform PIXI.Transform

The parent transform