Class: Transform

PIXI.Transform

Transform that takes care about its versions

Members

PIXI.Transform.IDENTITY PIXI.Transform staticreadonly

A default (identity) 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.

_currentLocalID number protected

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

Default Value:
  • 0

_cx number protected

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

Default Value:
  • 1

_cy number protected

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

Default Value:
  • 0

_localID number protected

The locally unique ID of the local transform.

Default Value:
  • 0

_parentID number protected

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

Default Value:
  • 0

_rotation number protected

The rotation amount.

Default Value:
  • 0

_sx number protected

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

Default Value:
  • 0

_sy number protected

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

Default Value:
  • 1

_worldID number protected

The locally unique ID of the world transform.

Default Value:
  • 0

Methods

setFromMatrix (matrix) void

Transform.ts:270

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

Name Type Description
matrix PIXI.Matrix

The matrix to decompose

updateLocalTransform () void

Transform.ts:201

Updates the local transformation matrix.

updateTransform (parentTransform) void

Transform.ts:225

Updates the local and the world transformation matrices.

Name Type Description
parentTransform PIXI.Transform

The parent transform

onChange () void protected

Transform.ts:164

Called when a value changes.

updateSkew () void protected

Transform.ts:174

Called when the skew or the rotation changes.