pydune.math.arctan2d#

arctan2d(x1, x2)[source]#

Element-wise arc tangent of x1/x2 choosing the quadrant correctly using np.arctan2 with an output in degree.

Parameters:
  • x1 (array_like, real-valued) – y-coordinates.

  • x2 (array_like, real-valued) – x-coordinates. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).

Returns:

angle – Array of angles in degrees, in the range [-180, 180]. This is a scalar if both x1 and x2 are scalars.

Return type:

array_like