Useless class. May be useful in the future.

Hierarchy

  • Transform
    • Live2DTransform

Constructors

  • Returns Live2DTransform

Properties

_currentLocalID: number

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

_cx: number

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

_cy: number

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

_localID: number

The locally unique ID of the local transform.

_parentID: number

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

_rotation: number

The rotation amount.

_sx: number

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

_sy: number

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

_worldID: number

The locally unique ID of the world transform.

localTransform: Matrix

The local transformation matrix.

pivot: ObservablePoint<any>

The pivot point of the displayObject that it rotates around.

position: ObservablePoint<any>

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

scale: ObservablePoint<any>

The scale factor of the object.

skew: ObservablePoint<any>

The skew amount, on the x and y axis.

worldTransform: Matrix

The world transformation matrix.

IDENTITY: Transform

A default (identity) transform.

Accessors

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

    Returns number

  • set rotation(value: number): void
  • Parameters

    • value: number

    Returns void

Methods

  • Called when a value changes.

    Returns void

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

    Parameters

    • matrix: Matrix

      The matrix to decompose

    Returns void

  • Returns string

  • Updates the local transformation matrix.

    Returns void

  • Called when the skew or the rotation changes.

    Returns void

  • Updates the local and the world transformation matrices.

    Parameters

    • parentTransform: Transform

      The parent transform

    Returns void

Generated using TypeDoc