wima
    Preparing search index...

    Class GlobalTransform2D

    Represents a 2x3 affine. Can be used to represent 2 dimensional rotation, scale, skew and translation.

    Matrix layout: | a | c | x | | b | d | y |

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionale11: number
      • Optionale12: number
      • Optionale13: number
      • Optionale21: number
      • Optionale22: number
      • Optionale23: number

      Returns GlobalTransform2D

    Properties

    a: number
    b: number
    c: number
    d: number
    x: number
    y: number
    Identity: Affine2

    The identity affine.

    Zero: Affine2

    The zero affine.

    Methods

    • Iterates over the affine components in row-major order.

      Returns IterableIterator<number>

    • Creates a new affine with the same components.

      Returns Affine2

    • Composes this affine from translation, orientation and scale.

      Parameters

      Returns this

    • Copies another affine into this one.

      Parameters

      Returns this

    • Divides this affine by another (this = this * inverse(affine)).

      Parameters

      Returns Affine2

    • Checks component-wise equality.

      Parameters

      Returns boolean

    • Inverts this affine in place.

      Returns Affine2

    • Multiplies this affine by another (this = this * affine).

      Parameters

      Returns Affine2

    • Sets this affine from raw matrix components.

      Parameters

      • e11: number
      • e12: number
      • e13: number
      • e21: number
      • e22: number
      • e23: number

      Returns this

    • Checks component-wise equality for two affines.

      Parameters

      Returns boolean

    • Creates or overwrites an affine with raw matrix components.

      Parameters

      • e11: number
      • e12: number
      • e13: number
      • e21: number
      • e22: number
      • e23: number
      • Optionalout: Affine2

      Returns Affine2

    • Checks whether a value is a valid affine serial.

      Parameters

      • value: unknown

      Returns value is Affine2Like