mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
LibGfx: Add AffineTransform::rotation()
Extracts the rotation from a 2D matrix.
This commit is contained in:
parent
8c1dacecba
commit
a77accf3f4
2 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue