Arc Tangent 2
Available since 2022.1.2
Last updated
Available since 2022.1.2
Last updated
The Arc Tangent 2 Node takes two Float values, and , and returns . The result can be obtained in degrees (°) or radians (rad).
The function is of common use in computer science and can be equivalently defined as:
The angle in the Euclidean plane between the positive axis and the ray connecting the origin and the point .
The phase of the complex number . That is, the angle such that and , where .
Scope: Project, Scene, Function, Prefab.
Attribute | Type | Description |
---|---|---|
| Bool | Determines whether the |
| Float | The default value of |
| Float | The default value of |
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| Float | The input value. |
| Float | The input value. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Float | The value of , either in degrees (°) or radians (rad), according to the |
atan2 on Wikipedia.