From 7973718285926968949e5dfa9e4aca4c4ae0956f Mon Sep 17 00:00:00 2001 From: marcelbls Date: Thu, 6 Nov 2025 16:36:09 +0100 Subject: [PATCH] added rot3d test --- matrixmania/__init__.py | 2 +- tests/test_rot3D.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/matrixmania/__init__.py b/matrixmania/__init__.py index 975a585..c812c86 100644 --- a/matrixmania/__init__.py +++ b/matrixmania/__init__.py @@ -1 +1 @@ -from .compute import matmul, transpose, rot_2D \ No newline at end of file +from .compute import matmul, transpose, rot_2D, rot_3D \ No newline at end of file diff --git a/tests/test_rot3D.py b/tests/test_rot3D.py index ad408f3..65d073e 100644 --- a/tests/test_rot3D.py +++ b/tests/test_rot3D.py @@ -1 +1,9 @@ -from matrixmania import rot_3D \ No newline at end of file +from matrixmania import rot_3D + +def test_rot_3D(): + angle = 90 + result = rot_3D(angle,"x") + print(f"Angle:{angle} Rot-Matrix:{result}") + + assert result == [[1, 0, 0], [0, 6.123233995736766e-17, -1.0], [0, 1.0, 6.123233995736766e-17]] == [[6.123233995736766e-17, -1.0], [1.0, 6.123233995736766e-17]] +