Opentopia Directory Encyclopedia Tools

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].
atan2 is a two-parameter function for computing the arctangent in the C programming language, C++, Java, C#, Fortran and many other modern programming langauges. The Linux Programmer's Manual [link] says:
"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."
This is the preferred form [link] for correctly finding the sign of the result in all quadrants. See also inverse trigonometric function.

More specifically, the function atan2(y,x) is defined as the arctangent of y/x with a range from (-π,π], determined by:

This function is used to find the direction from one point to another in 2-dimension Euclidean space.

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.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: