PIXI.Transform
class Transform
Transform that takes care about its versions.
Summary
Properties from Transform
A default (identity) transform. |
|
number |
The locally unique ID of the parent's world transform used to calculate the current world transformation matrix. |
number |
The locally unique ID of the world transform. |
PIXI.Matrix |
The local transformation matrix. |
PIXI.ObservablePoint |
The pivot point of the displayObject that it rotates around. |
PIXI.ObservablePoint |
The coordinate of the object relative to the local coordinates of the parent. |
number |
The rotation of the object in radians. |
PIXI.ObservablePoint |
The scale factor of the object. |
PIXI.ObservablePoint |
The skew amount, on the x and y axis. |
PIXI.Matrix |
The world transformation matrix. |
number |
The locally unique ID of the local transform used to calculate the current local transformation matrix. |
number |
|
number |
|
number |
The locally unique ID of the local transform. |
number |
The rotation amount. |
number |
|
number |
|
Methods from Transform
void |
|
void |
Updates the local transformation matrix. |
void |
|
void |
Called when a value changes. |
void |
Called when the skew or the rotation changes. |
Public Properties
_parentID: number
The locally unique ID of the parent's world transform used to calculate the current world transformation matrix.
pivot: PIXI.ObservablePoint
The pivot point of the displayObject that it rotates around.
position: PIXI.ObservablePoint
The coordinate of the object relative to the local coordinates of the parent.
Protected Properties
protected _currentLocalID: number
The locally unique ID of the local transform used to calculate the current local transformation matrix.
protected _cx: number
The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
protected _cy: number
The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
protected _sx: number
The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
protected _sy: number
The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
Public Methods
setFromMatrix(matrix: PIXI.Matrix) → {void}
Decomposes a matrix and sets the transforms properties based on it.
Name | Type | Description |
---|---|---|
matrix | PIXI.Matrix |
The matrix to decompose |
Type | Description |
---|---|
void |
updateLocalTransform() → {void}
Updates the local transformation matrix.
Type | Description |
---|---|
void |
updateTransform(parentTransform: PIXI.Transform) → {void}
Updates the local and the world transformation matrices.
Name | Type | Description |
---|---|---|
parentTransform | PIXI.Transform |
The parent transform |
Type | Description |
---|---|
void |
Protected Methods
protected onChange() → {void}
Called when a value changes.
Type | Description |
---|---|
void |
protected updateSkew() → {void}
Called when the skew or the rotation changes.
Type | Description |
---|---|
void |