· (LogiX node)
Jump to navigation Jump to search
The · node calculates the dot (or scalar) product of input vectors A and B.
When spawned from the node browser, this node accepts the float2 datatype by default. However, this node can be overloaded to accept different numeric vector value types if an appropriate wire is connected to an input. Note that if an integer (int) vector is connected the output is still a float.
The vector dot product has a very useful property: if the input vectors are pointing in approximately the same direction the sign of the output is positive. Similarly the sign will be negative if the vectors point in approximately opposite directions. The value is zero if the vectors are exactly at right angles to each other.