diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-26 16:53:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-27 07:24:53 +0200 |
commit | a77accf3f4d70174f4b213abcd1847d0fc705094 (patch) | |
tree | 1ae928e3947d527425ed4c215a339de04be65a85 /Userland/Libraries/LibGfx/AffineTransform.h | |
parent | 8c1dacecbafd15d36de3a201d29438af5245cd73 (diff) | |
download | serenity-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.h | 1 |
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); |