VLength:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Mathematics > Vector Math

VLength
ExtensionExtension

Computes the length of the provided vector

Description

VLength computes the length of the provided vector as the square root of the sum of the squares of its components. It works on input dimensions 1-4. In the 1D case it returns the absolute value of the input.

Supported Rates: frame, shape, pixel

Class Methods

.fr

.sr

.pr

Make a VLength VGen at requested rate.

Arguments:

v

The input vector.

Returns:

The length of the vector.

dimensions

inputoutput
11
21
31
41

Examples