Skip to content
Snippets Groups Projects
Commit 02caec7e authored by cmaffeo2's avatar cmaffeo2
Browse files

Fix matrix transpose in new quaterion_from_matrix routine

parent c62ac059
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ def quaternion_to_matrix(q):
return np.array(R)
def quaternion_from_matrix( R ):
R = R.T
q = np.empty(4)
if R[2,2] < 0:
if R[0,0] > R[1,1]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment