Signature (Visual Basic / VBA)
Public Function ATan2( _
ByVal vX As Variant _
, ByVal vY As Variant _
) As Variant
Code Example
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
Parameters
| Parameter | Description |
|---|---|
| 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. |