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

Reply via email to