Each Zero#
Outputs a boolean, or array of booleans, indicating which input values are zero within a specified tolerance.
Installation#
To use this Node, you must enable omni.graph.nodes
in the Extension Manager.
Inputs#
Name |
Type |
Description |
Default |
---|---|---|---|
Value (value) |
|
Value(s) to check for zero. |
|
Tolerance (tolerance) |
|
How close the value must be to 0 to be considered zero. |
Outputs#
Name |
Type |
Description |
Default |
---|---|---|---|
Result (result) |
|
If ‘value’ is a scalar then ‘result’ will be a boolean set to true if ‘value’ is zero. If ‘value’ is non-scalar (array, tuple, matrix, etc) then ‘result’ will be an array of booleans, one for each element/component of the input. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if ‘value’ is [3, 0, 1] then ‘result’ will be [true, false, true] because the second element is zero. But if ‘value’ is [[3, 0, 1], [-5, 4, 17]] then ‘result’ will be [false, false] because neither of the two vectors is fully zero. |