Transform

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

Constructor

  • Transform(
        pos: Vec2 = ...,
        angle: float = 0.0,
        scale: Vec2 = ...
    ) Transform
  • Transform(
        pos: Vec2 = ...,
        angle: float = 0.0,
        scale: float = 1.0
    ) Transform

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

Properties


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