Transform

Transform represents a 2D transformation with position, rotation, and scale.

Constructor

  • Transform(
        pos: Any = None,
        angle: SupportsFloat = 0.0,
        scale: Any = None
    ) Transform

Transform represents a 2D transformation with position, rotation, and scale.

Properties


NameDescriptionType
angleThe rotation component in radians.float
posThe position component as a Vec2.Vec2
scaleThe scale component as a Vec2.Vec2