← Back to team overview

yade-users team mailing list archive

[Question #188478]: quaternions

 

New question #188478 on Yade:
https://answers.launchpad.net/yade/+question/188478

Hi there,
if I take the difference between two quaternions in Yade should I worry about anything at all? I recall these two lines in ScGeom.cpp (which I find difficult to gather -- maybe there is an old discussion about it?)

#else
    if (isnan(aa.angle())) aa.angle()=0;
#endif
   if (aa.angle() > Mathr::PI) aa.angle() -= Mathr::TWO_PI;   // angle is between 0 and 2*pi, but should be between -pi and pi


Thanks for advice! 
Chiara

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.