atan2

Arctan2(y,x)

intermediate

theta = atan2(y,x)

Formula

Two-argument arctan