Use this action to calculate and convert the arctangent2 of cartesian coordinates (x,y) to polar notation in radians. Arctangent2 is typically stylized as
atan2(y,x). It is used instead of arctan(y/x) when calculating an arctangent where both signs of the arctan2 arguments are used to determine the quadrant of the result.
To learn more, consider starting at the Atan2 Wikipedia article.
When configuring this action, reference a Integer or decimal in the X field configuration, and enter an Integer or decimal or reference a field in the Y field configuration. How do I reference a field?
- The cartesian coordinate X to use in the calculation. This is the second argument when calculating atan(y,x).
- The cartesian coordinate Y to use in the calculation. This is the first argument when calculating atan(y,x).
- To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.
This action outputs to radians. To convert radians to degrees, use the Radians to degrees action
This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:
- The result of the operation. The output is a decimal type field.
If something’s not working as expected, or you’re looking for suggestions, check through the options below.
Math actions require integer or decimal values. If you enter an incompatible value for the input, the output may be blank. For example, attempting to perform an operation on the value
Marine Biologist will always return an empty field.
Thanks for your feedback
We update the Help Center daily, so expect changes soon.
Paste this URL anywhere to link straight to the section.