The atan2 function takes into account the signs of both vector components, and places the angle in the correct quadrant.
The following expression derived from the tangent half-angle formula can also be used to define atan2.
from http://en.wikipedia.org/wiki/Atan2
댓글 없음:
댓글 쓰기