From 063c82fcfc29312b3d3647d4b7ae5dc66c105ea0 Mon Sep 17 00:00:00 2001 From: Nimra Bhatti Date: Fri, 17 Oct 2025 10:22:30 +0000 Subject: [PATCH] =?UTF-8?q?gamematrix.h=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamematrix.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gamematrix.h diff --git a/gamematrix.h b/gamematrix.h new file mode 100644 index 0000000..7a644d6 --- /dev/null +++ b/gamematrix.h @@ -0,0 +1,19 @@ +#pragma once +#include +#include +#include +#include + +class gameMatrix +{ +public: + // Matrix Multiplikation + static std::array,4> matmul(const std::array,4>& A, + const std::array,4>& B); + + // Rotationsmatrix um Achse x/y/z + static std::array,4> rot3D(double angle_deg, char axis); + + // Verschiebung + static std::array,4> translate(const std::array& pos); +};