A game about forced loneliness, made by TACStudios
1# Distance Node 2 3## Description 4 5Returns the euclidean distance between the values of the inputs **A** and **B**. This is useful for, among other things, calculating the distance between two points in space and is commonly used in calculating a [Signed Distance Function](https://en.wikipedia.org/wiki/Signed_distance_function). 6 7## Ports 8 9| Name | Direction | Type | Description | 10|:------------ |:-------------|:-----|:---| 11| A | Input | Dynamic Vector | First input value | 12| B | Input | Dynamic Vector | Second input value | 13| Out | Output | Float | Output value | 14 15## Generated Code Example 16 17The following example code represents one possible outcome of this node. 18 19``` 20void Unity_Distance_float4(float4 A, float4 B, out float Out) 21{ 22 Out = distance(A, B); 23} 24```