PIXI.Transform

class Transform

Transform that takes care about its versions.

Summary


Properties from Transform

static IDENTITY

A default (identity) transform.

number
_parentID

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

number
_worldID

The locally unique ID of the world transform.

PIXI.Matrix
localTransform

The local transformation matrix.

PIXI.ObservablePoint
pivot

The pivot point of the displayObject that it rotates around.

PIXI.ObservablePoint
position

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

number
rotation

The rotation of the object in radians.

PIXI.ObservablePoint
scale

The scale factor of the object.

PIXI.ObservablePoint
skew

The skew amount, on the x and y axis.

PIXI.Matrix
worldTransform

The world transformation matrix.

number
protected _currentLocalID

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

number
protected _cx
number
protected _cy
number
protected _localID

The locally unique ID of the local transform.

number
protected _rotation

The rotation amount.

number
protected _sx
number
protected _sy

Methods from Transform

void
setFromMatrix(matrix: PIXI.Matrix)
void
updateLocalTransform()

Updates the local transformation matrix.

void
updateTransform(parentTransform: PIXI.Transform)
void
protected onChange()

Called when a value changes.

void
protected updateSkew()

Called when the skew or the rotation changes.

Public Properties


IDENTITY Transform.ts:13
static IDENTITY

A default (identity) transform.

_parentID Transform.ts:34
_parentID: number

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

_worldID Transform.ts:37
_worldID: number

The locally unique ID of the world transform.

localTransform Transform.ts:19
localTransform: PIXI.Matrix

The local transformation matrix.

pivot Transform.ts:28
pivot: PIXI.ObservablePoint

The pivot point of the displayObject that it rotates around.

position Transform.ts:22
position: PIXI.ObservablePoint

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

rotation Transform.ts:199
rotation: number

The rotation of the object in radians.

scale Transform.ts:25
scale: PIXI.ObservablePoint

The scale factor of the object.

skew Transform.ts:31
skew: PIXI.ObservablePoint

The skew amount, on the x and y axis.

worldTransform Transform.ts:16
worldTransform: PIXI.Matrix

The world transformation matrix.

Protected Properties


_currentLocalID Transform.ts:70
protected _currentLocalID: number

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

_cx Transform.ts:43
protected _cx: number

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

_cy Transform.ts:55
protected _cy: number

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

_localID Transform.ts:67
protected _localID: number

The locally unique ID of the local transform.

_rotation Transform.ts:40
protected _rotation: number

The rotation amount.

_sx Transform.ts:49
protected _sx: number

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

_sy Transform.ts:61
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 Transform.ts:189
setFromMatrix(matrix: PIXI.Matrix) → {void}

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

Parameters:
Name Type Description
matrix PIXI.Matrix

The matrix to decompose

Returns:
Type Description
void
updateLocalTransform Transform.ts:123
updateLocalTransform() → {void}

Updates the local transformation matrix.

Returns:
Type Description
void
updateTransform Transform.ts:145
updateTransform(parentTransform: PIXI.Transform) → {void}

Updates the local and the world transformation matrices.

Parameters:
Name Type Description
parentTransform PIXI.Transform

The parent transform

Returns:
Type Description
void

Protected Methods


onChange Transform.ts:94
protected onChange() → {void}

Called when a value changes.

Returns:
Type Description
void
updateSkew Transform.ts:100
protected updateSkew() → {void}

Called when the skew or the rotation changes.

Returns:
Type Description
void

Powered by webdoc!