idk the ui uses that... Stub |
Filled in this node page. |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=⋅<br><p style="font-size:25%;">(dot product) | |Name=⋅<br><p style="font-size:25%;">(dot product) | ||
|Category= | |Category=Vectors | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Type":"Dummy"}, | {"Name":"A", "Type":"Dummy"}, | ||
{"Type":"Dummy"} | {"Name":"B", "Type":"Dummy"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
[ | [ | ||
{"Type":"float"} | {"Name":"*", "Type":"float"} | ||
] | ] | ||
|}} | |}} | ||
[[ | The '''Dot''' node (also called '''Dot Product''') takes in 2 vector values and returns a product as a [[Type:float|float]]. This result comes from the projection from one vector onto another, and is commutative (order of inputs do not matter). | ||
[[ | |||
If vectors have similar directions, the result is positive. if the vectors are perpendicular, the result is <code>0</code>. If the vectors are going in opposite directions, the result will be negative. | |||
{{Note|This product is a scaler, which returns a number. If you want something that returns a vector, use the [[ProtoFlux:Cross|Cross]] node instead.|suggestion}} | |||
== Inputs == | |||
=== A (Pseudo-Generic) === | |||
The first vector value. | |||
=== B (Pseudo-Generic) === | |||
The seconds vector value. | |||
== Outputs == | |||
=== * ([[Type:float|float]]) === | |||
Returns the dot product of these 2 vectors. | |||
== Further Reading == | |||
=== Videos === | |||
<youtube>LyGKycYT2v0</youtube> | |||
<youtube>0iNrGpwZwog</youtube> | |||
== See Also == | |||
* Wikipedia's definition of the [https://en.wikipedia.org/wiki/Dot_product dot product]. | |||
[[Category:ProtoFlux:Operators:Vectors]] | [[Category:ProtoFlux:Operators:Vectors]] |
Latest revision as of 20:07, 28 June 2024
⋅
(dot product)
Vectors
The Dot node (also called Dot Product) takes in 2 vector values and returns a product as a float. This result comes from the projection from one vector onto another, and is commutative (order of inputs do not matter).
If vectors have similar directions, the result is positive. if the vectors are perpendicular, the result is 0
. If the vectors are going in opposite directions, the result will be negative.
Inputs
A (Pseudo-Generic)
The first vector value.
B (Pseudo-Generic)
The seconds vector value.
Outputs
* (float)
Returns the dot product of these 2 vectors.
Further Reading
Videos
See Also
- Wikipedia's definition of the dot product.