Arctangent2
Computes the angle in degrees between the positive x-axis and the vector from the origin to the input point (“X Axis”, “Y Axis”) in the range [-180, 180], also known as the 2-argument arctangent. The inputs can take the form of simple values, tuples, arrays, and arrays of tuples. If one input has a higher dimension than the other, then the input with lower dimension will be repeated to match the dimension of the other input (broadcasting), and the output will have the same shape and size as the higher-dimensioned input.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Y Axis (inputs:a) |
|
The y-component of the vector whose angle to the positive x-axis needs to be determined. |
None |
X Axis (inputs:b) |
|
The x-component of the vector whose angle to the positive x-axis needs to be determined. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Result (outputs:result) |
|
The angle in degrees in the range [-180, 180] between the positive x-axis and the vector, also known as the 2-argument arctangent. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ATan2 |
Version |
2 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Arctangent2 |
Categories |
math:operator |
Generated Class Name |
OgnATan2Database |
Python Module |
omni.graph.nodes |