Início > lang > atan2 
 en fr de es it nl pl pt mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Anterior  Próximo  Editar  Renomear  Desfazer  Procurar  Administração  
Documentação  
Cuidado! Esta página não está traduziada.  Veja a versão em inglês 
ATan2
Angle = ATan2 ( Y AS Float , X AS Float ) AS Float
Angle = Atn2 ( Y AS Float , X AS Float ) AS Float

This function calculates the arc tangent of the two variables X and Y. It is similar to calculating the arc tangent of Y / X, except that the signs of both arguments are used to determine the quadrant of the result.

The function returns the result in radians, which is between -π and π (inclusive).

This is the same function as Ang except that the arguments are inverted.

Exemplo

PRINT Deg(ATan2(1, -1))

135

Veja também

Funções Trigonométricas