From 61dc7c3813dc1b4723affdfa74b6a18d319fad3f Mon Sep 17 00:00:00 2001 From: Talya Washington Date: Sun, 25 Oct 2026 18:08:05 +0100 Subject: [PATCH] 7 commit hausaufgabe --- src/matrixmania/compute.py | 1 + test/test_matrixmania/test_projection.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/matrixmania/compute.py b/src/matrixmania/compute.py index 0034f8e..6a7e7ff 100644 --- a/src/matrixmania/compute.py +++ b/src/matrixmania/compute.py @@ -246,3 +246,4 @@ def project_perspective(point: tuple[float, float, float], y_2d = y * focal_length / depth * scale return (x_2d, y_2d) + diff --git a/test/test_matrixmania/test_projection.py b/test/test_matrixmania/test_projection.py index 4d6ec95..3ccb720 100644 --- a/test/test_matrixmania/test_projection.py +++ b/test/test_matrixmania/test_projection.py @@ -41,3 +41,4 @@ def test_project_perspective_scaled(): """Projektionsfunktion mit Skalierung""" point = (1.0, 2.0, 3.0) assert project_ortho(point, scale=100) == (100.0, 200.0) +