Math.Negate¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The float or integer (or sequence of floats or integers) to reverse the sign of. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
||
Output ➡️ |
The input with its sign reversed. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
This shard reverses the sign of the input. (A positive number becomes negative, and vice versa).
Details¶
If a sequence of floats was provided as input, the shard will reverse the sign of each element in the sequence and output a sequence.
If a sequence of vectors was provided as input, the shard will reverse the sign of each component in each vector in the sequence and output a sequence of vectors with each component in each vector with its sign reversed.
This shard cannot accept a sequence with multiple types as input.