ProtoFlux:Distance: Difference between revisions

From Resonite Wiki
stub
 
Filled in the node page.
Line 14: Line 14:
|}}
|}}


[[Category:ProtoFlux:Stubs]]
The '''Distance''' node takes in 2 values and returns the distance/length between them.
 
{{Note|This is similar to using the [[ProtoFlux:Sub|Sub]] node, rearranging the inputs so the higher number is our main value to subtract from, then taking the result and removing the sign ([[ProtoFlux:Value Abs|Value Abs]] node). Using distance is easier and does all that calculation for you.|information}}
 
== Inputs ==
 
=== A (Pseudo-Generic) ===
 
The first value.
 
=== B (Pseudo-Generic) ===
 
The second value.
 
== Outputs ==
 
=== * (Pseudo-Generic) ===
 
The distance between 2 values.
 
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators:Vectors]]
[[Category:ProtoFlux:Operators:Vectors]]

Revision as of 12:35, 27 June 2024

Distance
A
*
B
Operators

The Distance node takes in 2 values and returns the distance/length between them.

This is similar to using the Sub node, rearranging the inputs so the higher number is our main value to subtract from, then taking the result and removing the sign (Value Abs node). Using distance is easier and does all that calculation for you.

Inputs

A (Pseudo-Generic)

The first value.

B (Pseudo-Generic)

The second value.

Outputs

* (Pseudo-Generic)

The distance between 2 values.