erster_Stand_compute.py
stand_1_pyproject.toml
This commit is contained in:
1 parent
88bbddc41f
commit
7265c4bf02
2 files changed
+12
-2
No files matched your search
+8
-2
@@ -14,6 +14,7 @@ is raised.
|
||||
|
||||
import math
|
||||
from typing import List, Iterable
|
||||
from tabulate import tabulate
|
||||
|
||||
|
||||
def _is_rectangular(matrix: Iterable[Iterable]) -> bool:
|
||||
@@ -135,9 +136,14 @@ if __name__ == "__main__":
|
||||
print(trsp)
|
||||
|
||||
print("\nrot_2D:")
|
||||
# Punkt (1, 0) um 90 Grad (pi / 2) drehen
|
||||
x_neu, y_neu = rot_2D(1.0, 0.0, math.pi / 2)
|
||||
|
||||
print(f"Gedrehter Punkt: x = {x_neu:.2f}, y = {y_neu:.2f}")
|
||||
# optional wegen -e
|
||||
if abs(x_neu) < 1e-15:
|
||||
x_neu = 0.0
|
||||
if abs(y_neu) < 1e-15:
|
||||
y_neu = 0.0
|
||||
|
||||
punkt_tabelle = [[x_neu, y_neu]]
|
||||
print(tabulate(punkt_tabelle))
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[project]
|
||||
name = "matrixmania"
|
||||
version = "0.1.0"
|
||||
dependencies = ["tabulate", "ruff"]
|
||||
Reference in new issue
Block a user