Difference between revisions of "Inverse Vector"

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>Inverse</categorytree></div>
='''Inverse Vector'''=
 
  
[[Image:drex_module_59_image_0.png|485pxpx|Inverse Vector]]
+
[[File:InverseVector_00_GUI.png|none|470px|Inverse Vector]]
  
'''Node Description & Purpose: '''<br /> The Inverse family of nodes calculate the multiplicative inverse, or reciprocal, of the Input value. Basically this means that the output value is one divided by the input value:<br /><br /> Output = 1 '''divided by''' Input<br /><br /> For vectors the calculation is done on a component-wise basis, for example: <br /><br /> Output.x = 1 '''divided by''' Input.x<br /> Output.y = 1 '''divided by''' Input.y<br /> Output.z = 1 '''divided by''' Input.z<br /><br /> Division by zero, which is an invalid operation and causes problems for computers, is handled safely by the nodes. In the case of division by zero the node will divide the value by epsilon, which is a very small number greater than zero. If you don't know what this means, basically you will get a very large valid number output from the node which ensures that your network will continue to work. If this was not done you could get either an invalid number which would cause problems in the rest of your network, or the application might even crash.<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes have no other settings apart from the Input node.
 
  
 +
==Overview==
 +
The Inverse family of nodes calculate the multiplicative inverse, or reciprocal, of the Input value. Basically this means that the output value is one divided by the input value:
  
__NOTOC__
+
 
<!-- imported from file: module_59.html-->
+
Output = 1 '''divided by''' Input
 +
 
 +
 
 +
For vectors the calculation is done on a component-wise basis, for example:
 +
 
 +
 
 +
Output.x = 1 '''divided by''' Input.x <br /n>
 +
Output.y = 1 '''divided by''' Input.y <br /n>
 +
Output.z = 1 '''divided by''' Input.z <br /n>
 +
 
 +
 
 +
Division by zero, which is an invalid operation and causes problems for computers, is handled safely by the nodes. In the case of division by zero the node will divide the value by epsilon, which is a very small number greater than zero. If you don't know what this means, basically you will get a very large valid number output from the node which ensures that your network will continue to work. If this was not done you could get either an invalid number which would cause problems in the rest of your network, or the application might even crash.
 +
 
 +
 
 +
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 Inverse vector nodes in a project.
 +
*'''Enable: '''When checked, the node is active, and when unchecked the node is ignored.
 +
 
 +
 
 +
<br/n>
 +
 
 +
 
 +
 
 +
 
 +
[[Category:Inverse]]

Latest revision as of 22:17, 5 April 2022

Inverse Vector


Overview[edit]

The Inverse family of nodes calculate the multiplicative inverse, or reciprocal, of the Input value. Basically this means that the output value is one divided by the input value:


Output = 1 divided by Input


For vectors the calculation is done on a component-wise basis, for example:


Output.x = 1 divided by Input.x
Output.y = 1 divided by Input.y
Output.z = 1 divided by Input.z


Division by zero, which is an invalid operation and causes problems for computers, is handled safely by the nodes. In the case of division by zero the node will divide the value by epsilon, which is a very small number greater than zero. If you don't know what this means, basically you will get a very large valid number output from the node which ensures that your network will continue to work. If this was not done you could get either an invalid number which would cause problems in the rest of your network, or the application might even crash.


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



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.

A vector is a set of three scalars, normally representing X, Y and Z coordinates. It also commonly represents rotation, where the values are pitch, heading and bank.