ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::Transform2D Struct Reference

2D affine transform stored as pivot + translate + rotation + scale. More...

#include <CoreTypes.hpp>

Public Attributes

Vec2 pivot
Vec2 translate
float rotationDeg {0.0f}
float scale {1.0f}

Detailed Description

2D affine transform stored as pivot + translate + rotation + scale.

Applying: translate the pivot to origin, scale, rotate, then add pivot back and apply the translation. Matches the CSS transform-origin convention used by the layout system.

See also
applyTransform
applyInverseTransform

The documentation for this struct was generated from the following file: