add project_ortho tests

This commit is contained in:
marcelbls 2025-11-20 14:26:30 +01:00
parent 130e6c36f4
commit a50e9bfb91
2 changed files with 11 additions and 1 deletions

View File

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

View File

@ -1 +1,11 @@
from matrixmania import project_ortho from matrixmania import project_ortho
def test_projection():
point = (1.0, 2.0, 3.0)
scale = 100
result1 = project_ortho(point, scale)
result2 = project_ortho(point)
assert result1 == (100, 200)
assert result2 == (1, 2)