<-- Previous || Up || Next -->

A Cot 2 Function
Math Trig Complex Class

Public Function ACot2( _
      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:
    ACot2(-1,  0) =  0
    ACot2(-1,  1) =  2.35619449019234
    ACot2( 0,  1) =  1.5707963267949
    ACot2( 1,  1) =  0.785398163397448
    ACot2( 1,  0) =  0
    ACot2( 1, -1) = -0.785398163397448
    ACot2( 0, -1) = -1.5707963267949
    ACot2(-1, -1) = -2.35619449019234
See also:
    ACot Function
    ATan2 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.