gameforge - v0.1.12
    Preparing search index...

    Class Transform

    Transform that takes care about its versions.

    PIXI

    Hierarchy

    • Transform
      • Transform
    Index

    Constructors

    • Returns Transform

    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.

    The pivot point of the displayObject that it rotates around.

    position: ObservablePoint

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

    The scale factor of the object.

    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

    • 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