1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

LibGfx: Add AffineTransform::rotation()

Extracts the rotation from a 2D matrix.
This commit is contained in:
Andreas Kling 2023-04-26 16:53:06 +02:00
parent 8c1dacecba
commit a77accf3f4
2 changed files with 12 additions and 0 deletions

View file

@ -54,6 +54,7 @@ public:
[[nodiscard]] float x_translation() const;
[[nodiscard]] float y_translation() const;
[[nodiscard]] FloatPoint translation() const;
[[nodiscard]] float rotation() const;
AffineTransform& scale(float sx, float sy);
AffineTransform& scale(FloatPoint s);