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

VNorm
ExtensionExtension

Parallel vector with unit length VGen

Description

VNorm computes a normalized vector parallel to v with length 1. For scalar values this is equivalent to the sign operation, returning -1 for all values < 0, 0 for 0, and +1 for all values > 0.

Supported Rates: frame, shape, pixel

Class Methods

.fr

.sr

.pr

Make a VNorm VGen at requested rate.

Arguments:

v

The input vector.

Returns:

A vector parallel to v but with unit length.

dimensions

inputoutput
11
22
33
44

Examples