Magnitude
Compute the magnitude of a vector, array of vectors, or a scalar. If a scalar is passed in, the absolute value will be returned. If an array of vectors are passed in, the output will be an array of corresponding magnitudes.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Input (inputs:input) |
|
The vector(s) or scalar(s) to take the magnitude of. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Magnitude (outputs:magnitude) |
|
The resulting magnitude(s) of the inputted vector(s) or scalar(s). |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.Magnitude |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
tags |
absolute |
uiName |
Magnitude |
Categories |
math:operator |
Generated Class Name |
OgnMagnitudeDatabase |
Python Module |
omni.graph.nodes |