Arctan2 Scalar: Difference between revisions
Conformed layout & updated GUI image. Needs param descriptions. |
|||
| Line 1: | Line 1: | ||
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Trig</categorytree></div> | |||
= | |||
[[ | [[File:Arctan2Scalar_00_GUI.png|none|470px|Arctan2 Scalar]] | ||
==Overview== | |||
These nodes output the arc cosine, arc sine or arc tangent of the Input scalar. These are the inverse cosine, inverse sine or inverse tangent of the Input scalar, respectively. Using arc sine as an example, the inverse sine of a value is the number which is the sine of the value. Put another way : | |||
The sine of 1 is 0.017452<br /> The arc sine, or inverse sine, of 0.017452 is 1 | The sine of 1 is 0.017452<br /> The arc sine, or inverse sine, of 0.017452 is 1 | ||
| Line 14: | Line 13: | ||
It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this. | It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this. | ||
'''Settings: ''' | '''Settings:''' | ||
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Arctan Scalar nodes in a project. | |||
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored. | |||
*'''X value:''': TBC | |||
'''Error conditions:'''<br /> | '''Error conditions:'''<br /> | ||
'''Arccos scalar: '''It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.<br />'''Arcsin scalar: '''It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | '''Arccos scalar: '''It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.<br />'''Arcsin scalar: '''It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | ||
<br /n> | |||
[[Category: Trig]] | |||
Latest revision as of 23:19, 22 April 2022

Overview
These nodes output the arc cosine, arc sine or arc tangent of the Input scalar. These are the inverse cosine, inverse sine or inverse tangent of the Input scalar, respectively. Using arc sine as an example, the inverse sine of a value is the number which is the sine of the value. Put another way :
The sine of 1 is 0.017452
The arc sine, or inverse sine, of 0.017452 is 1
The output of this function is in radians. You can use the Radians to degrees scalar node to convert the output to degrees.
It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Arctan Scalar nodes in a project.
- Enable: When checked, the node is active, and when unchecked the node is ignored.
- X value:: TBC
Error conditions:
Arccos scalar: It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.
Arcsin scalar: It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.