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

Protected _cx

_cx: number

Protected _cy

_cy: number

Protected _localID

_localID: number

_parentID

_parentID: number

Protected _rotation

_rotation: number

Protected _sx

_sx: number

Protected _sy

_sy: number

_worldID

_worldID: number

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

position

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

The position in local space.

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

worldTransform

worldTransform: TransformMatrix = new TransformMatrix()

The transformation matrix in world space.

Static IDENTITY

IDENTITY: Transform

A default (identity) transform

static
constant
member

{PIXI.Transform}

Accessors

rotation

  • get rotation(): number
  • set rotation(value: number): any
  • The rotation of the object in radians.

    member

    {number}

    Returns number

  • The rotation of the object in radians.

    Parameters

    • value: number

    Returns any

Methods

lookAt

  • Rotates the transform so the forward vector points at specified point.

    Parameters

    • point: ObservablePoint3D

      The point to look at.

    • Default value up: Float32Array = new Float32Array([0, 1, 0])

      The upward direction.

    Returns void

Protected onChange

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

    Returns void

setFromMatrix

toString

  • toString(): string
  • Returns string

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