Atan2
Encyclopedia : A : AT : ATA : Atan2
- The correct title of this } is }}}. The initial letter is capitalized due to [Naming conventions #Lower case first lettertechnical restrictions].
- "The atan2 C++ function calculates the arctangent of the two variables x and y. It is similar to calculating the arctangent of y/x, except that the signs of both arguments are used to determine the quadrant of the result."
More specifically, the function atan2(y,x) is defined as the arctangent of y/x with a range from (-π,π], determined by:
- if x = y = 0, then the result is indefinite,
- if x > 0 and y = 0, then atan2 = 0,
- if x < 0 and y = 0, then atan2 = π, else
- if y < 0, then −π < atan2 < 0,
- if y > 0, then 0 < atan2 < π.
External links
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
