Normalize

Normalize the input vector (or array of input vectors). If the input vector has a magnitude of zero, the null vector is returned. The inputs will be copied into the output attribute before the normalization is performed on said output (i.e. the input vector(s) are not mutated in-place).

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Vector (inputs:vector)

['double[2]', 'double[2][]', 'double[3]', 'double[3][]', 'double[4]', 'double[4][]', 'float[2]', 'float[2][]', 'float[3]', 'float[3][]', 'float[4]', 'float[4][]', 'half[2]', 'half[2][]', 'half[3]', 'half[3][]', 'half[4]', 'half[4][]']

Input vector (or an array of input vectors) to normalize.

None

Outputs

Name

Type

Descripton

Default

Result (outputs:result)

['double[2]', 'double[2][]', 'double[3]', 'double[3][]', 'double[4]', 'double[4][]', 'float[2]', 'float[2][]', 'float[3]', 'float[3][]', 'float[4]', 'float[4][]', 'half[2]', 'half[2][]', 'half[3]', 'half[3][]', 'half[4]', 'half[4][]']

Copy of the input vector (or array of vectors) after applying the corresponding normalization operations.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.Normalize

Version

1

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Normalize

Categories

math:operator

Generated Class Name

OgnNormalizeDatabase

Python Module

omni.graph.nodes