|
inlineconstexpr |
Parameters
x, y: floating values.c: Conditional expression masking the operation.m: Logical value masking the operation.Return value
The arc tangent in degrees of \(\frac{y}x\) in the range \([-180 , +180]\), is returned. The IEEE limiting values are almost all satisfied :
x and y are both zero or infinites, Nan is returned (this is not standard conforming)y is \(\pm0\) and x is strictly negative or \(-0\), \(\pm180\) is returnedy is \(\pm0\) and x is strictly positive or \(+0\), \(\pm0\) is returnedy is \(\pm\infty\) and x is finite, \(\pm90\) is returnedx is \(\pm0\) and y is strictly negative, \(-90\) is returnedx is \(\pm0\) and y is strictly positive, \(+90\) is returnedx is \(-\infty\) and y is finite and positive, \(+180\) is returnedx is \(-\infty\) and y is finite and negative, \(-180\) is returnedx is \(+\infty\) and y is finite and positive, \(+0\) is returnedx is \(+\infty\) and y is finite and negative, \(-0\) is returnedx is Nan or y is Nan, Nan is returnedThe call will return a NaN if x and y are both either null or infinite: this result is not IEEE conformant, but allows to simplify (and speed) the implementation. In all other cases, the result is standard conformant.
y is \(\pm\infty\) and x is \(-\infty\), \(\pm135\) is returnedy is \(\pm\infty\) and x is \(+\infty\), \(\pm45\) is returnedx is \(\pm0\) and y is \(\pm-0\), \(-90\) is returnedx is \(\pm0\) and y is \(\pm+0\), \(+90\) is returned