Pettersson Håkan wrote:
>> Hello
>>
>> How do I calculate the yaw angle that my cameraManipulator is
>> pointg at   (-PI to +PI) ???
>>
>> /Hakan

Hi Håkan,
Relative to what? If you want it relative to the +Z axis, then use
atan2(zdir.x, zdir.z), being careful to put in a special case where the camera
is looking straight up or down. But I suggest you be a bit more specific with
your question.
For general 2D and 3D maths questions, you could do worse than look at:
mathworld.wolfram.com or a slew of other 3D maths sites.

-JD



______________________________________________________________________
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

Reply via email to