Skip to content

Math.Negate

Name Mandatory Description Default Type
⬅️ Input The float or integer (or sequence of floats or integers) to reverse the sign of. IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any]
Output ➡️ The input with its sign reversed. IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[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.