Length to Scalar: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
Updated layout.
Line 1: Line 1:
[[Image:drex_module_106_image_0.png|485pxpx|Length to Scalar]]
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div>


'''Node Description & Purpose: '''<br /> The Length to scalar node calculates the length, or magnitude, of the Input vector and then outputs the length as a scalar. The length is calculated using the following formula:<br /><br /> scalar '''becomes''' <u>square root of</u>( vector.x x vector.x + vector.y x vector.y + vector.z x vector.z )<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> This node has no other settings apart from the Input node.
[[File:Length2Scalar_00_GUI.png|none|470px|Length to Scalar]]
 
 
==Overview==
The Length to scalar node calculates the length, or magnitude, of the Input vector and then outputs the length as a scalar. The length is calculated using the following formula:
 
<ul>
scalar becomes square root of( vector.x x vector.x + vector.y x vector.y + vector.z x vector.z )
</ul>
 
 
This node has 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 Length to Scalar nodes in a project.
*'''Enable:''' When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.
 
 
<br /n>


<!-- imported from file: module_106.html-->


[[Category:Convert]]
[[Category:Convert]]

Revision as of 19:31, 15 March 2022

Length to Scalar
Length to Scalar


Overview

The Length to scalar node calculates the length, or magnitude, of the Input vector and then outputs the length as a scalar. The length is calculated using the following formula:


This node has 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 Length to Scalar nodes in a project.
  • Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.