10 lines
314 B
Python
10 lines
314 B
Python
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]]
|
|
|