Orthogonale Projektion und 3D_rot mit Tests ergänzt

This commit is contained in:
tranggonoba95010 committed 2026-10-29 01:53:22 +01:00
1 parent b5f5a154ba
commit 6ededbc4c2
7 files changed
+214 -5

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
from matrixmania import project_ortho
def test_project_ortho_without_scale():
# Arrange
point = (1.0, 2.0, 3.0)
expected = (1.0, 2.0)
# Act
result = project_ortho(point)
# Assert
assert result == expected
def test_project_ortho_with_scale_100():
# Arrange
point = (1.0, 2.0, 3.0)
scale = 100
expected = (100.0, 200.0)
# Act
result = project_ortho(point, scale=scale)
# Assert
assert result == expected