tf.math.atan2

Computes arctangent of y/x element-wise, respecting signs of the arguments.

tf.math.atan2(
    y, x, name=None
)

This is the angle ( \theta \in [-\pi, \pi] ) such that [ x = r \cos(\theta) ] and [ y = r \sin(\theta) ] where (r = \sqrt(x2 + y2) ).

Args:

Returns:

A Tensor. Has the same type as y.