added projection functin

This commit is contained in:
2025-11-25 14:24:33 +01:00
parent e0891258d2
commit bd962791ff
3 changed files with 18 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
from matrixmania import project_ortho
def test_projection_1():
point = (1.0, 2.0, 3.0)
assert project_ortho(point) == (1.0, 2.0)
def test_projection_2():
point = (1.0, 2.0, 3.0)
scale = 100
assert project_ortho(point, scale) == (100.0, 200.0)