Back to Core Functions
atan2
Four-quadrant inverse tangent
Syntax
Y = atan2(B, A)
Description
Computes the four-quadrant inverse tangent of B/A, using the signs of both arguments to determine the quadrant.
Parameters
| Name | Description |
|---|---|
| B | Y-coordinates (scalar or NDArray) |
| A | X-coordinates (scalar or NDArray) |
Returns
Angle in radians in (-pi, pi]