summaryrefslogtreecommitdiff
path: root/src/helpers/math/Math.hpp
diff options
context:
space:
mode:
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);