Jeremy Friesner (jfriesne++at++sdchemw1.ucsd.edu)
Wed, 25 Sep 96 01:13:12
In my app I need to take the difference of two hpr vectors
(as returned in by pfMatrix::getOrthoCoord()) to calculate
a rotational velocity.
Some of the time, this works, but at certain angles such
as (0,-90,0), things go squirrely, with the heading and
roll fields suddenly changing by 180 degrees.
What is the correct method for dealing with this problem?
My efforts so far (hacks such as taking each value fmod 180)
have not given correct results. I believe someone mentioned
that pfQuats were good for this kind of thing, but it isn't
clear to me how to use them.
Jeremy
Jeremy Friesner | If love is blind, lingerie
jfriesne++at++ucsd.edu | makes great braille.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:38 PDT