gamematrix.h hinzugefügt

This commit is contained in:
Nimra Bhatti 2025-10-17 10:22:30 +00:00
parent 7c16ae7261
commit 063c82fcfc

19
gamematrix.h Normal file
View File

@ -0,0 +1,19 @@
#pragma once
#include <vector>
#include <array>
#include <stdexcept>
#include <cmath>
class gameMatrix
{
public:
// Matrix Multiplikation
static std::array<std::array<double,4>,4> matmul(const std::array<std::array<double,4>,4>& A,
const std::array<std::array<double,4>,4>& B);
// Rotationsmatrix um Achse x/y/z
static std::array<std::array<double,4>,4> rot3D(double angle_deg, char axis);
// Verschiebung
static std::array<std::array<double,4>,4> translate(const std::array<double, 3>& pos);
};