From 3a5bbedad17684bbdc8d76f70aad902df61c672e Mon Sep 17 00:00:00 2001 From: taraseidler Date: Wed, 28 Oct 2026 15:53:53 +0100 Subject: [PATCH] =?UTF-8?q?in=20compute.py:=20Funktion=20project=5Fortho?= =?UTF-8?q?=20Implimentiert=20(f=C3=BCr=20die=20orthographische=20Projekti?= =?UTF-8?q?on=20eines=203D=20point)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compute.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compute.py b/compute.py index a038d67..4a3d9d2 100644 --- a/compute.py +++ b/compute.py @@ -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) +