some changes
This commit is contained in:
@@ -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]
|
||||
]))
|
||||
Reference in New Issue
Block a user