summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/AffineTransform.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-26 16:53:06 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-27 07:24:53 +0200
commita77accf3f4d70174f4b213abcd1847d0fc705094 (patch)
tree1ae928e3947d527425ed4c215a339de04be65a85 /Userland/Libraries/LibGfx/AffineTransform.h
parent8c1dacecbafd15d36de3a201d29438af5245cd73 (diff)
downloadserenity-a77accf3f4d70174f4b213abcd1847d0fc705094.zip
LibGfx: Add AffineTransform::rotation()
Extracts the rotation from a 2D matrix.
Diffstat (limited to 'Userland/Libraries/LibGfx/AffineTransform.h')
-rw-r--r--Userland/Libraries/LibGfx/AffineTransform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/AffineTransform.h b/Userland/Libraries/LibGfx/AffineTransform.h
index 45555eec21..beebcdc855 100644
--- a/Userland/Libraries/LibGfx/AffineTransform.h
+++ b/Userland/Libraries/LibGfx/AffineTransform.h
@@ -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);