"csrc/vscode:/vscode.git/clone" did not exist on "318e2b5ad673ec06d9f6519c6d08ba851d888b1b"
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):
[rot_sin, rot_cos, 0],
[0, 0, 1]])
elif axis == 0:
rot_mat_T = rotation.new_tensor([[0, rot_cos, -rot_sin],
[0, rot_sin, rot_cos],
[1, 0, 0]])
rot_mat_T = rotation.new_tensor([[1, 0, 0],
[0, rot_cos, -rot_sin],
[0, rot_sin, rot_cos]])
else:
raise ValueError('axis should in range')
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