Difference between revisions of "Inverse Scalar"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
Line 5: Line 5:
<!-- imported from file: module_58.html-->
[[Category:Inverse| ]]

Latest revision as of 18:35, 1 June 2011

Inverse Scalar

Node Description & Purpose:
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.

Node Type: Function

These nodes have no other settings apart from the Input node.
