From: Serge Kourdakov (serge++at++sat-sim.org)
Date: 09/24/2002 10:32:54
Hi Bram
>Note: I try to avoid the obvious approach of >using Euler angles,
>as Euler angles are evil, as pointed out by >Steven Baker (and quite
>rightly so):
>http://www.sjbaker.org/steve/omniv/eulers_are_evil.html
so use quaternions if you'd prefer them ;-).
get a quaternion from desired rotation (for ex a rotation from one vector
to another ).
then get a rotational matrix.
See man pfQuat.
If you would like to find quaternion implementaion I would suggest
to take a look at
http://plib.sourceforge.net/download.html
see sg.h sg.cxx
and http://math3d.sourceforge.net
Serge
http://www.vrtainment.de
This archive was generated by hypermail 2b29 : Tue Sep 24 2002 - 10:27:35 PDT