Unverified Commit 19f7461c authored by ChaimZhu's avatar ChaimZhu Committed by GitHub
Browse files

fix axis=0 rotation in master branch (#1182)

parent c8c5e1a9
...@@ -165,9 +165,9 @@ class BasePoints(object): ...@@ -165,9 +165,9 @@ class BasePoints(object):
[rot_sin, rot_cos, 0], [rot_sin, rot_cos, 0],
[0, 0, 1]]) [0, 0, 1]])
elif axis == 0: elif axis == 0:
rot_mat_T = rotation.new_tensor([[0, rot_cos, -rot_sin], rot_mat_T = rotation.new_tensor([[1, 0, 0],
[0, rot_sin, rot_cos], [0, rot_cos, -rot_sin],
[1, 0, 0]]) [0, rot_sin, rot_cos]])
else: else:
raise ValueError('axis should in range') raise ValueError('axis should in range')
rot_mat_T = rot_mat_T.T rot_mat_T = rot_mat_T.T
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment