Updated Dot Product.md (markdown)
commited
commit
c4c7bc9b4d772e4c271ad15727fbff752d40d6a8
... | ... | @@ -1,11 +1,6 @@ |
1 |
Computes the [[dot product|https://en.wikipedia.org/wiki/Dot_product]] of the two input [[vector]]s. |
|
1 |
Dot product is algebraically defined as the sum of the product of the corresponding vector component. |
|
2 | 2 | |
3 | The dot product is algebraically defined as taking 2 vectors of the same length, and multiplying each number side-by-side, and then summing them all. |
|
3 | If we were to find the dot product of Vector A (Ax, Ay, Az) and Vector B (Bx, By, Bz), we would use this formula: |
|
4 | Output = (Ax×Bx)+(Ay×By)+(Az×Bz) |
|
4 | 5 | |
5 | e.g. If vector 1 is *[2,3,-2]* and vector 2 is **[1,2,3]**: |
|
6 | - Multiplying *2* and **1** gives 2. |
|
7 | - Multiplying *3* and **2** gives 6. |
|
8 | - Multiplying *-2* and **3** gives -6. |
|
9 | - Adding them all gives 2, the dot product of them two. |
|
10 | ||
11 | 6 | [[/uploads/Dot Product.png]] |
... | ... | \ No newline at end of file |