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) +