in compute.py: Funktion project_ortho Implimentiert (für die orthographische Projektion eines 3D point)

This commit is contained in:
taraseidler committed 2026-10-28 15:53:53 +01:00
1 parent 41093db2ad
commit 3a5bbedad1
1 file changed
+4
+4
View File
@@ -123,6 +123,10 @@ def rot_3D(angle: float, axis: str) -> list[list[float]]:
raise ValueError(f"Invalid axis '{axis}': expected 'x', 'y' or 'z'.")
def project_ortho(point: tuple[float, float, float], scale: float = 1,) -> tupel[float, float]:
x, y, _z = point
return(x * scale, y * scale)