Returns the angle whose tangent is the quotient of two specified numbers.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static float Atan2( float y, float x )
Public Shared Function Atan2 ( _ y As Single, _ x As Single _ ) As Single
public: static float Atan2( float y, float x )
Parameters
- y (Single)
- The y coordinate of a point
- x (Single)
- The x coordinate of a point
Return Value
An angle, θ, measured in radians, such that -π≤θ≤π, and tan(θ) = y / x, where (x, y) is a point in the Cartesian plane.