Re: [osg-users] Rotating a vector by a quat

2010-06-30 Thread Roberts, Gareth (UK)
osg::Vec3 Vector, RotatedVector; 
Osg::Quat Q;

RotatedVector = Q*Vector;


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of John
Galt
Sent: 29 June 2010 16:01
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Rotating a vector by a quat


   *** WARNING ***

This mail has originated outside your organization, either from an
external partner or the Global Internet. 
 Keep this in mind if you answer this message. 

Hi,

I am looking for an easy way to rotate a vec3d by a quat(roll, pitch,
yaw). So if my vector is defined by (x,y,z) how do I figure out what the
resultant of a spatial rotation of (roll, pitch, yaw) would be? I have
calculated the final position of the vector using math but is there any
other, more simpler way to do it in osg?

Thank you!

Cheers,
John

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29490#29490





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g


This email and any attachments are confidential to the intended recipient and 
may also be privileged. If you are not the intended recipient please delete it 
from your system and notify the sender. You should not copy it or use it for 
any purpose nor disclose or distribute its contents to any other person. 

MBDA UK Limited, a company registered in England and Wales, registration number 
3144919 whose registered office is at Six Hills Way, Stevenage, Hertfordshire, 
SG1 2DA, England.


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Rotating a vector by a quat

2010-06-29 Thread John Galt
Hi,

I am looking for an easy way to rotate a vec3d by a quat(roll, pitch, yaw). So 
if my vector is defined by (x,y,z) how do I figure out what the resultant of a 
spatial rotation of (roll, pitch, yaw) would be? I have calculated the final 
position of the vector using math but is there any other, more simpler way to 
do it in osg?

Thank you!

Cheers,
John

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29490#29490





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org