Check out example codes for "unity atan value". It will help you in understanding the concepts better.

Code Example 1

//Atan
Mathf.Atan(10f);
//Atan2
Mathf.Atan2(y, x); // NOTE: use float values by adding an "f" xext to the number

Learn ReactJs, React Native from akashmittal.com