Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles position, scaling and rotation in 3D.

Hierarchy

  • Transform
    • Transform3D

Index

Constructors

constructor

  • Returns Transform3D

Properties

Protected _currentLocalID

_currentLocalID: number

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

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.

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.

Protected _localID

_localID: number

The locally unique ID of the local transform.

_parentID

_parentID: number

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

Protected _rotation

_rotation: number

The rotation amount.

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.

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.

_worldID

_worldID: number

The locally unique ID of the world transform.

inverseWorldTransform

inverseWorldTransform: Matrix4x4 = ...

The inverse transformation matrix in world space.

localTransform

localTransform: Matrix4x4 = ...

The transformation matrix in local space.

normalTransform

normalTransform: Matrix4x4 = ...

The normal transformation matrix.

pivot

pivot: ObservablePoint<any>

The pivot point of the displayObject that it rotates around.

position

position: Point3D = ...

The position in local space.

rotationQuaternion

rotationQuaternion: Quaternion = ...

The rotation in local space.

scale

scale: Point3D = ...

The scale in local space.

skew

skew: ObservablePoint<any>

The skew amount, on the x and y axis.

worldTransform

worldTransform: Matrix4x4 = ...

The transformation matrix in world space.

Static Readonly IDENTITY

IDENTITY: Transform

A default (identity) transform.

Accessors

rotation

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

    Returns number

  • The rotation of the object in radians.

    Parameters

    • value: number

    Returns void

Methods

lookAt

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

    Parameters

    • point: Point3D

      The point to look at.

    • up: Point3D | Float32Array = ...

      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?: Transform): void
  • Updates the world transformation matrix.

    Parameters

    • Optional parentTransform: Transform

      The parent transform.

    Returns void

Generated using TypeDoc