files added, compute modified

This commit is contained in:
englingvi103466 committed 2026-10-22 13:34:49 +02:00
1 parent 806434d813
commit ebd75fe26e
9 files changed
+527

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import pytest
from compute import project_perspective
def test_project_perspective_default():
# Arrange
point = (100.0, 100.0, 100.0)
distance = 200.0
# Act
result = project_perspective(point, distance=distance, scale=1.0)
# Assert: factor = 200 / (200 + 100) = 200 / 300 = 2/3
assert result == (100.0 * (2 / 3), 100.0 * (2 / 3))