Arctangent

(1)
\begin{equation} y=tan^{-1}x \end{equation}

what is use for

given point(x,y),arctangent method calculate angle$\theta$
arctan.png

Arctangent method of each language

angle=java.lang.Math.atan2(y,x);

return ±3.14($\pi$)
How can I convert return value of atan2(y,x) into degree from 0 to 360?
official documentation of java atan2()
float degree = (float) (Math.toDegrees(Math.atan2(y, x))+360.0f)%360.0f;

Online try

RapidTables.com Arctan Calculator

en.gif en
ja.gif ja


edit
サポートサイト Wikidot.com