MatrixMania/test/test_rot.py
2025-11-04 17:14:52 +01:00

11 lines
291 B
Python

from matrixmania import rot_2D
import math
def test_rot_1():
angle = 0
assert rot_2D(angle) == [[1.0, -0.0],
[0.0, 1.0]]
def test_rot_2():
angle = math.pi
assert rot_2D(angle) == [[-1.0, -1.2246467991473532e-16], [1.2246467991473532e-16, -1.0]]