Difference between revisions of "Arctan2 Scalar"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(Conformed layout & updated GUI image. Needs param descriptions.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:IMPORT]]
+
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Trig</categorytree></div>
='''Arctan2 Scalar'''=
 
  
[[Image:drex_module_120_image_0.png|485pxpx|Arctan2 Scalar]]
+
[[File:Arctan2Scalar_00_GUI.png|none|470px|Arctan2 Scalar]]
__NOTOC__
 
<!-- imported from file: module_120.html-->
 
  
'''Node Description & Purpose: '''<br /> 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 :
+
 
 +
==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
  
The output of this function is in radians. You can use the [http://forums.planetside.co.uk/index.php?topic=3090 Radians to degrees scalar node] to convert the output to degrees.
+
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 [http://forums.planetside.co.uk/index.php?topic=3086 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.
  
'''Node Type: ''' Function
 
  
'''Settings: '''<br /> These nodes have no other settings apart from the Input node.
+
'''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

Arctan2 Scalar


Overview[edit]

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.



A scalar is a single number. 1, 200.45, -45, -0.2 are all examples of scalar values.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.