D:/orxonox/orxonox-0.0.3/src/util/Math.cc

Gets the angle between my viewing direction and the direction to the position of the other object.
Parameters:
myposition My position
mydirection My viewing direction
otherposition The position of the other object
Returns:
The angle
If the other object is exactly in front of me, the function returns 0. If the other object is exactly behind me, the function returns pi. If the other object is exactly right/left to me (or above/below), the function returns pi/2.


Generated on Tue Jul 28 16:20:47 2009 for Orxonox by  doxygen 1.5.6