Hi,

On Thu, 2008-02-28 at 14:07 +0100, [EMAIL PROTECTED] wrote:
> Hello,
> 
> i have a question using quaternions.
> I'm looking for a method to set a quaternion depending on two vectors -
> like one vector for direction and one vector representing an up-vector.
> The method i need should set a quaternion so that the quaternion could be
> used to rotate an object into the state that it looks in direction given
> by the direction-vectors and pointing up into direction given by the
> up-vector.
> Is there a possibility to do that?
> 
> Or, likely the same: Is there a way to create a quaternion that represents
> the coordinate system defined by three axes?

as this is essentially a matrix, just put the  your axis into the matrix
and convert to the quaternion.

kind regards,
  gerrit




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to