Difference between revisions of "Arcsin Scalar"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(Conformed layout & updated GUI image.)
 
(2 intermediate revisions 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>
='''Arcsin Scalar'''=
 
  
[[Image:drex_module_118_image_0.png|485pxpx|Arcsin Scalar]]
+
[[File:ArcsinScalar_00_GUI.png|none|470px|Arcsin Scalar]]
__NOTOC__
 
  
'''Node Description & Purpose:'''
+
 
 +
==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 :
 
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 :
  
Line 16: Line 15:
 
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.
  
'''Node Type:''' Function
+
These nodes have no other settings apart from the Input node.
 +
 
  
 
'''Settings:'''
 
'''Settings:'''
These nodes have no other settings apart from the Input node.
+
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Arcsin Scalar nodes in a project.
 +
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored.
 +
 
  
 
'''Error conditions:'''
 
'''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.
 
* '''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.
 
* '''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 22:35, 22 April 2022

Arcsin 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.

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 Arcsin Scalar nodes in a project.
  • Enable: When checked, the node is active, and when unchecked the node is ignored.


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.