← Back to team overview

yade-users team mailing list archive

Re: [Question #449020]: Quaternions might not be represented properly in YADE

 

Question #449020 on Yade changed:
https://answers.launchpad.net/yade/+question/449020

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Nolan​,

I would recommend to use a builtin method. If you want to reimplement it to
see if you understand it or know how it is computed internally, do it
afterwards. So use (I got expected results):

#####################
q = O.bodies[..].state.ori
axis,angle = q.toAxisAngle()
print ...
#####################

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.