Guest User

Untitled

a guest
Aug 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from pyquaternion import Quaternion
  2. import numpy
  3.  
  4.  
  5. # rotation = numpy.array([[1,0.0,0,1],[0,1,0,1],[0,0,1,1], [0,0,0,1]], dtype='float')
  6.  
  7. rotation = numpy.array([[0,1,0],[-1,0,0],[0,0,1]], dtype='float')
  8.  
  9. q8d = Quaternion(matrix=rotation)
  10.  
  11. print q8d
  12. print q8d[0], q8d[1], q8d[2] ,q8d[3]
Add Comment
Please, Sign In to add comment