summaryrefslogtreecommitdiff
path: root/src/helpers/math/Math.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-07-21 13:09:54 +0200
committerGitHub <noreply@github.com>2024-07-21 13:09:54 +0200
commit016da234d0e852de3ef20eb2e89ac58d2a85f6e7 (patch)
tree496085987176551b0794fffc069877d44943e2f1 /src/helpers/math/Math.hpp
parentf642fb97df5c69267a03452533de383ff8023570 (diff)
Core: Move to aquamarine (#6608)
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
Diffstat (limited to 'src/helpers/math/Math.hpp')
-rw-r--r--src/helpers/math/Math.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/helpers/math/Math.hpp b/src/helpers/math/Math.hpp
index 4aa65c93..f57cef93 100644
--- a/src/helpers/math/Math.hpp
+++ b/src/helpers/math/Math.hpp
@@ -7,5 +7,14 @@
using namespace Hyprutils::Math;
-eTransform wlTransformToHyprutils(wl_output_transform t);
-void projectBox(float mat[9], CBox& box, eTransform transform, float rotation, const float projection[9]);
+eTransform wlTransformToHyprutils(wl_output_transform t);
+void projectBox(float mat[9], CBox& box, eTransform transform, float rotation, const float projection[9]);
+void matrixProjection(float mat[9], int width, int height, eTransform transform);
+void matrixTransform(float mat[9], eTransform transform);
+void matrixRotate(float mat[9], float rad);
+void matrixScale(float mat[9], float x, float y);
+void matrixTranslate(float mat[9], float x, float y);
+void matrixTranspose(float mat[9], const float a[9]);
+void matrixMultiply(float mat[9], const float a[9], const float b[9]);
+void matrixIdentity(float mat[9]);
+wl_output_transform invertTransform(wl_output_transform tr);