added rot3d test

This commit is contained in:
marcelbls 2025-11-06 16:36:09 +01:00
parent 2d209069a3
commit 7973718285
2 changed files with 10 additions and 2 deletions

View File

@ -1 +1 @@
from .compute import matmul, transpose, rot_2D from .compute import matmul, transpose, rot_2D, rot_3D

View File

@ -1 +1,9 @@
from matrixmania import rot_3D 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]]