Re: [osg-users] Compute angle betweens two vectors

2011-07-01 Thread Mohamed Alji
Thank you for your answer.


Mohamed ALJI


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




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


Re: [osg-users] Compute angle betweens two vectors

2011-07-01 Thread Paul Martz

On 7/1/2011 6:04 AM, Mohamed Alji wrote:

This is a newbie question ! Is there a way using OSG Math to compute the angle
between two vectors of osg::Vec3.


No OSG math required. The dot product of two unit vectors is the cosine of their 
angle, so use acos() to get the angle from the dot product.


--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Compute angle betweens two vectors

2011-07-01 Thread Mohamed Alji
Hi,

This is a newbie question ! Is there a way using OSG Math to compute the angle 
between two vectors of osg::Vec3. 

Thank you


Mohamed ALJI


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




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