Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transform3D

Handles position, scaling and rotation.

Hierarchy

  • Transform
    • Transform3D

Index

Constructors

constructor

Properties

Protected _currentLocalID

_currentLocalID: number

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

member

{number} PIXI.Transform#_currentLocalID

Protected _cx

_cx: number

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

member

{number} PIXI.Transform#_cx

Protected _cy

_cy: number

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

member

{number} PIXI.Transform#_cy

Protected _localID

_localID: number

The locally unique ID of the local transform.

member

{number} PIXI.Transform#_localID

Protected _parentID

_parentID: number

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

member

{number} PIXI.Transform#_parentID

Protected _rotation

_rotation: number

The rotation amount.

member

{number} PIXI.Transform#_rotation

Protected _sx

_sx: number

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

member

{number} PIXI.Transform#_sx

Protected _sy

_sy: number

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

member

{number} PIXI.Transform#_sy

Protected _worldID

_worldID: number

The locally unique ID of the world transform.

member

{number} PIXI.Transform#_worldID

inverseWorldTransform

inverseWorldTransform: TransformMatrix = new TransformMatrix()

The inverse transformation matrix in world space.

localTransform

localTransform: TransformMatrix = new TransformMatrix()

The transformation matrix in local space.

normalTransform

normalTransform: TransformMatrix = new TransformMatrix()

The normal transformation matrix.

pivot

pivot: ObservablePoint

The pivot point of the displayObject that it rotates around.

member

{PIXI.ObservablePoint} PIXI.Transform#pivot

position

position: ObservablePoint3D = new ObservablePoint3D(this.onChange, this, 0, 0, 0)

The position in local space.

rotation

rotation: number

The rotation of the object in radians.

member

{number}

rotationQuaternion

rotationQuaternion: ObservableQuaternion = new ObservableQuaternion(this.onChange, this, 0, 0, 0, 1)

The rotation in local space.

scale

scale: ObservablePoint3D = new ObservablePoint3D(this.onChange, this, 1, 1, 1)

The scale in local space.

skew

skew: ObservablePoint

The skew amount, on the x and y axis.

member

{PIXI.ObservablePoint} PIXI.Transform#skew

worldTransform

worldTransform: TransformMatrix = new TransformMatrix()

The transformation matrix in world space.

Static IDENTITY

IDENTITY: Transform

A default (identity) transform

static
constant
member

{PIXI.Transform}

Methods

Protected onChange

  • onChange(): void
  • Called when a value changes.

    Returns void

setFromMatrix

  • setFromMatrix(matrix: TransformMatrix): void
  • Sets position, rotation and scale from an matrix array.

    Parameters

    • matrix: TransformMatrix

      The matrix to set.

    Returns void

updateLocalTransform

  • updateLocalTransform(): void

Protected updateSkew

  • updateSkew(): void
  • Called when the skew or the rotation changes.

    Returns void

updateTransform

  • updateTransform(parentTransform?: PIXI.Transform): void
  • Updates the world transformation matrix.

    Parameters

    • Optional parentTransform: PIXI.Transform

      The parent transform.

    Returns void

Generated using TypeDoc