Re: quat to euler

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Thu, 06 May 1999 12:03:42 -0700


You should also be aware that for any orientation more than one
combination of Euler angles can create the same result and hence
deriving the Euler angles from the matrix may produce a correct
solution, just not the one you had in mind.

Cheers,Angus.

h.d. pfeffer wrote:
>
> Hi all
>
> I'm trying to calculate the euler angles of a quaternion x y z a.
>
> pfQuat quat.set(x,y,z,a);
> pfMatrix mat.makeQuat(quat);
> mat.getOrthoCoord(&coord);
>
> 1. I suppose there is a better way to get the euler angles
> 2. the result of coord.hpr is not the one I expected
>
> Any suggestions ?
>
> Thanks
>
> Dieter
>
> --
> Unclassified Mail
> ----------------------------
> Dieter Pfeffer
> Hollandse Signaalapparaten B.V.
> email: d.pfeffer++at++signaal.nl
> P.O. Box 42 | Phone: +31-74-2484262
> 7550 GD Hengelo, The Netherlands | Fax : +31-74-2484064
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Microsoft's system was like a forest that hadn't had a controlled
 burn in decades, just waiting for one person with a match to turn
 it into a disaster. Melissa was Microsoft's fault. They left their
 system wide open to this sort of abuse, they knew it could happen
 and did nothing." -- Bruce Perens

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu May 06 1999 - 12:03:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.