7 commit hausaufgabe
This commit is contained in:
1 parent
6e76e97a4b
commit
61dc7c3813
2 files changed
+2
No files matched your search
@@ -246,3 +246,4 @@ def project_perspective(point: tuple[float, float, float],
|
|||||||
y_2d = y * focal_length / depth * scale
|
y_2d = y * focal_length / depth * scale
|
||||||
return (x_2d, y_2d)
|
return (x_2d, y_2d)
|
||||||
|
|
||||||
|
|
||||||
@@ -41,3 +41,4 @@ def test_project_perspective_scaled():
|
|||||||
"""Projektionsfunktion mit Skalierung"""
|
"""Projektionsfunktion mit Skalierung"""
|
||||||
point = (1.0, 2.0, 3.0)
|
point = (1.0, 2.0, 3.0)
|
||||||
assert project_ortho(point, scale=100) == (100.0, 200.0)
|
assert project_ortho(point, scale=100) == (100.0, 200.0)
|
||||||
|
|
||||||
Reference in new issue
Block a user