ArcTan2 / Computation Layer

Calculate the two-argument arctangent (polar angle) from x,y coordinates. Similar to numpy.arctan2() or R's atan2(). Returns angle in radians [-π, π].

Mathematical form:

Common applications:

  • Direction calculation (wind direction, vehicle heading)
  • Robot navigation (movement angles)
  • Computer graphics (rotation angles)
  • Signal processing (phase angles)
  • Vector analysis (polar coordinates)
  • Image processing (gradient direction)

Note: More robust than simple arctan(y/x) as it handles all quadrants correctly.

Table
0
0
Table

SelectX

column

X-coordinate column (cosine component). Represents:

  • Horizontal component of vector
  • East-West displacement
  • Real part of complex number
  • Forward/backward motion

SelectY

column

Y-coordinate column (sine component). Represents:

  • Vertical component of vector
  • North-South displacement
  • Imaginary part of complex number
  • Left/right motion

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.