# Difference between revisions of "Length to Scalar"

(jrfconvert import) |
|||

Line 3: | Line 3: | ||

[[Image:drex_module_106_image_0.png|485pxpx|Length to Scalar]] | [[Image:drex_module_106_image_0.png|485pxpx|Length to Scalar]] | ||

+ | |||

+ | '''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. | ||

+ | |||

__NOTOC__ | __NOTOC__ | ||

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

## Revision as of 01:41, 28 April 2011

**Length to Scalar**[edit]

**Node Description & Purpose: **

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:

scalar **becomes** __square root of__( vector.x x vector.x + vector.y x vector.y + vector.z x vector.z )**Node Type: ** Function**Settings: **

This node has no other settings apart from the Input node.

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

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.

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.