__device__ double atan2 ( double  x,
double  y 
)

Calculate the principal value of the arc tangent of the ratio of first and second input arguments x / y. The quadrant of the result is determined by the signs of inputs x and y.

Returns:
Result will be in radians, in the interval [-$\pi$/, +$\pi$].
  • atan2(0, 1) returns +0.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA