added rot3d test
This commit is contained in:
parent
2d209069a3
commit
7973718285
@ -1 +1 @@
|
|||||||
from .compute import matmul, transpose, rot_2D
|
from .compute import matmul, transpose, rot_2D, rot_3D
|
||||||
@ -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]]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user