rfw2d
    Preparing search index...

    Class Transform2D

    Two-dimensional transform (position, rotation, scale).

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    matrix: Mat2D = ...

    Matrix composed of the transform's position, rotation, and translation.

    Compose via Transform2D.compose.

    position: Vec2 = ...

    Position.

    radians: number = 0

    Rotation in radians.

    scale: Vec2 = ...

    Scale.

    z: number = 0

    Z value (layer).

    Accessors

    Methods

    • Decompose mat (or this transform's matrix) into position, rotation, and scale.

      Parameters

      • Optionalmat: Mat2DLike

        Optional, decompose from this matrix

      Returns void