ProtoFlux:Value Negate: Difference between revisions

From Resonite Wiki
Stub
 
Added an information note.
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Type":"Dummy"}
{"Name":"N", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Type":"Dummy"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}


[[Category:ProtoFlux:Stubs]]
The '''Value Negate''' node takes in a value and returns the same value with the opposite sign.
 
{{Note|This is similar to just using the [[ProtoFlux:Mul|Mul]] node and having one of the values being <code>-1</code>.|information}}
 
{{Note|If you just need a value without a sign, use the [[ProtoFlux:Value Abs|Value Abs]] node instead.|suggestion}}
 
== Inputs ==
 
=== N (Pseudo-Generic) ===
 
The value we want the opposite sign of.
 
== Outputs ==
 
=== * (Pseudo-Generic) ===
 
Returns the value of the opposite sign.
 
== See Also ==
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Additive_inverse additive inverse (negation)].
 
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]

Latest revision as of 15:28, 27 June 2024

-n
N
*
Operators

The Value Negate node takes in a value and returns the same value with the opposite sign.

This is similar to just using the Mul node and having one of the values being -1.
If you just need a value without a sign, use the Value Abs node instead.

Inputs

N (Pseudo-Generic)

The value we want the opposite sign of.

Outputs

* (Pseudo-Generic)

Returns the value of the opposite sign.

See Also