**Public Function ATan2( _
ByVal vX As Variant _
, ByVal vY As Variant _
) As Variant**

**Angle of the point (X, Y) where X and Y are real numbers. **

The point is expressed in rectangular coordinates.

Function returns an angle in radians that is between -Pi/2 and Pi/2.

**Examples:** ATan2( 0, -1) = 0
ATan2(-1, -1) = -2.35619449019234
ATan2(-1, 0) = -1.5707963267949
ATan2(-1, 1) = -0.785398163397448
ATan2( 0, 1) = 0
ATan2( 1, 1) = 0.785398163397448
ATan2( 1, 0) = 1.5707963267949
ATan2( 1, -1) = 2.35619449019234

**See also:** ATan Function
ACot2 Function

**vX:** The X-coordinate of the point whose angle from the origin is to be returned. Function returns Null if vX is Null or cannot be fixed up to a number. **vY:** The Y-coordinate of the point whose angle from the origin is to be returned. Function returns Null if vY is Null or cannot be fixed up to a number.

Copyright 1996-1999 Entisoft

Entisoft Tools is a trademark of Entisoft.