quaternions
Asked by
Chiara Modenese
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruno Chareyre
- Solved:
- Last query:
- Last reply:
To post a message you must log in.