in compute.py: Funktion project_ortho Implimentiert (für die orthographische Projektion eines 3D point)
This commit is contained in:
1 parent
41093db2ad
commit
3a5bbedad1
1 file changed
+4
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user