Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3ce2aa5f8 |
No files matched your search
@@ -18,7 +18,6 @@ endif()
|
|||||||
set(SRC_FILES
|
set(SRC_FILES
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/main.cpp
|
${CMAKE_CURRENT_LIST_DIR}/src/main.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/gamecube.cpp
|
${CMAKE_CURRENT_LIST_DIR}/src/gamecube.cpp
|
||||||
src/gamematrix.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
##Tom: prev: ${CMAKE_CURRENT_LIST_DIR}/linux -> now /include
|
##Tom: prev: ${CMAKE_CURRENT_LIST_DIR}/linux -> now /include
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
========================================================
|
||||||
|
Projekt: gamematrix (C++ Library)
|
||||||
|
Rolle: Projektleiter
|
||||||
|
Datei: requirements.txt
|
||||||
|
Datum: 3.11.2025
|
||||||
|
Team: Thomas und Co
|
||||||
|
========================================================
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# 1. Projektziel
|
||||||
|
# ----------------------------
|
||||||
|
Beschreiben Sie hier kurz das Ziel des Projekts:
|
||||||
|
|
||||||
|
Ziel: Implementierung der Matrixmulitplikation, -Rotation, -Verschiebung und anschließendes Testen
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# 2. Funktionale Anforderungen
|
||||||
|
# ----------------------------
|
||||||
|
Listen Sie alle Funktionen auf, die die Bibliothek bereitstellen soll.
|
||||||
|
Tragen Sie ein: Funktion, Eingabe, Ausgabe, kurze Beschreibung
|
||||||
|
|
||||||
|
| Funktion | Eingabe | Ausgabe | Kurzbeschreibung |
|
||||||
|
|---------------|------------------------------------|-----------------------|----------------------------------------|
|
||||||
|
| matmul | 4x4 Matrix A, 4x4 Matrix B | 4x4 Matrix | Multiplikation zweier Matrizen wie in Mathe gelernt
|
||||||
|
| translate | 3D Vektor | 4x4 Matrix | Verschiebung
|
||||||
|
| rot3D | Winkel in °, Rotationsachse (x/y/z)| 4x4 Matrix | Rotation
|
||||||
|
| identity (optional)| --- | 4x4 Matrix | _____________________________________ |
|
||||||
|
| _____________ | __________________________________ | ____________________ | ______________________________ |
|
||||||
|
| _____________ | __________________________________ | ____________________ | ______________________________ |
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# 3. Nicht-funktionale Anforderungen
|
||||||
|
# ----------------------------
|
||||||
|
(z. B. Performance, Lesbarkeit, Wartbarkeit, Python-Kompatibilität via pybind11)
|
||||||
|
|
||||||
|
- Lesbarkeit nach Coding Guidelines: https://elearning.ohmportal.de/pluginfile.php/395279/mod_page/content/5/Coding_Guidelines.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# 4. Annahmen / Einschränkungen
|
||||||
|
# ----------------------------
|
||||||
|
(z. B. alle Matrizen sind 4x4, Winkel in Grad, nur double)
|
||||||
|
|
||||||
|
- alle Matrizen sind 4x4
|
||||||
|
- Winkel in Grad
|
||||||
|
- nur double
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# 5. Abnahmekriterien
|
||||||
|
# ----------------------------
|
||||||
|
Wie soll geprüft werden, dass die Anforderungen erfüllt sind?
|
||||||
|
(z. B. Unit-Tests, Beispielrotationen, Matrizenmultiplikation)
|
||||||
|
|
||||||
|
- Tests von Marco müssen fehlerfrei verlaufen
|
||||||
|
|
||||||
|
========================================================
|
||||||
|
Hinweis:
|
||||||
|
- Diese Datei wird vom Projektleiter erstellt und gepflegt.
|
||||||
|
- Jede Phase des Projekts soll hier dokumentiert werden.
|
||||||
|
========================================================
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
//
|
|
||||||
// Created by marco on 03.11.2025.
|
|
||||||
//
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
========================================================
|
|
||||||
Projekt: gamematrix (C++ Library)
|
|
||||||
Rolle: Tester
|
|
||||||
Datei: tests.txt
|
|
||||||
Datum: ____________________
|
|
||||||
Team: ____________________
|
|
||||||
========================================================
|
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# 1. Testplan Übersicht
|
|
||||||
# ----------------------------
|
|
||||||
Ziel: Überprüfung der Funktionen matmul(), translate(), rot3D().
|
|
||||||
|
|
||||||
| Funktion | Testfall | Eingabe | Erwartetes Ergebnis | Bemerkung |
|
|
||||||
|---------------|---------------------------|------------------------------|-----------------------------------|----------------------------|
|
|
||||||
| matmul | Identity * Identity | 4x4 Identity Matrizen | Identity | Basisfall |
|
|
||||||
| matmul | Beispielmatrizen | A=[[...]], B=[[...]] | C=[[...]] | Prüfen mit Handrechnung |
|
|
||||||
| translate | Verschiebung | Vec3 {1,2,3} | Matrix mit Translation 1,2,3 | Prüfen letzte Spalte |
|
|
||||||
| rot3D | Rotation Z 90° | angle_deg=90, axis='z' | (1,0,0) -> (0,1,0) | Prüfen Anwendung auf Vektor|
|
|
||||||
| rot3D | Rotation X 180° | angle_deg=180, axis='x' | (0,1,0) -> (0,-1,0) | Prüfen Anwendung auf Vektor|
|
|
||||||
| rot3D | Rotation Y 270° | angle_deg=270, axis='y' | (1,0,0) -> (0,0,-1) | Prüfen Anwendung auf Vektor|
|
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# 2. Testdaten / Matrizen
|
|
||||||
# ----------------------------
|
|
||||||
- Matrizen für matmul: Identity, Beispiel A/B Matrizen
|
|
||||||
- Vektoren für translate: Vec3 {x, y, z}
|
|
||||||
- Vektoren für rot3D: Vec3 {1,0,0}, Vec3 {0,1,0}
|
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# 3. Abnahmekriterien
|
|
||||||
# ----------------------------
|
|
||||||
- Alle Unit-Tests erfolgreich
|
|
||||||
- Keine Exceptions außer gewollt (z. B. ungültige Achse)
|
|
||||||
- Testbericht in tests.txt dokumentiert
|
|
||||||
|
|
||||||
========================================================
|
|
||||||
Hinweis:
|
|
||||||
- Diese Datei wird vom Tester gepflegt.
|
|
||||||
- Tester dokumentiert Input, Output, erwartetes Ergebnis und Erfolg/Fehler.
|
|
||||||
========================================================
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
//
|
|
||||||
// Created by kmust on 03.11.2025.
|
|
||||||
//
|
|
||||||
Reference in new issue
Block a user