some changes

This commit is contained in:
marcelbls
2025-11-06 16:56:00 +01:00
parent 7973718285
commit 3a027799d1
5 changed files with 23 additions and 7 deletions
+5 -5
View File
@@ -81,10 +81,6 @@ def rot_3D(angle: float, axis: str) -> List[List[float]]:
:param axis: x,y,z axis of rotation matrix
:return: 3D rotation matrix
"""
if angle > 360:
raise ValueError("angle must be less than 360")
elif angle < 0:
raise ValueError("angle must be greater than 0")
cos = math.cos(math.radians(angle))
sin = math.sin(math.radians(angle))
@@ -102,4 +98,8 @@ def rot_3D(angle: float, axis: str) -> List[List[float]]:
if __name__ == "__main__":
print(rot_3D(90, "x"))
print(rot_3D(-90, "x"))
print(transpose([
[1, 2, 3],
[4, 5, 6]
]))