slight reorder
commited
commit
3214f7e0df7d93abc671d4a3212f1244b9ebb52c
... | ... | @@ -12,19 +12,19 @@ This means the dot product of the vectors A and B. |
12 | 12 | |
13 | 13 | The Dot Product is a way of multiplying two vectors together. |
14 | 14 | |
15 | We can calculate the Dot Product of two vectors this way: |
|
15 | We can calculate it algebraically this way: |
|
16 | 16 | |
17 | A · B = \|A\| × \|B\| × cos(θ)
|
|
17 | A · B = Ax × Bx + Ay × By + Az × Bz
|
|
18 | 18 | |
19 | Where \|A\| is the magnitude (length) of vector A, \|B\| is the magnitude (length) of vector B, and θ is the angle between A and B. |
|
19 | We multiply the x's, multiply the y's, multiply the z's, and then sum them all together. |
|
20 | 20 | |
21 | So we multiply the length of A times the length of B, then multiply by the [[cosine|Cos]] of the angle between A and B. |
|
21 | For more advanced readers, it can also be calculated this way: |
|
22 | 22 | |
23 | We can also calculate it algebraically this way: |
|
23 | A · B = \|A\| × \|B\| × cos(θ) |
|
24 | 24 | |
25 | A · B = Ax × Bx + Ay × By + Az × Bz |
|
25 | Where \|A\| is the magnitude (length) of vector A, \|B\| is the magnitude (length) of vector B, and θ is the angle between A and B. |
|
26 | 26 | |
27 | So we multiply the x's, multiply the y's, multiply the z's, and then sum them all together. |
|
27 | So we multiply the length of A times the length of B, then multiply by the [[cosine|Cos]] of the angle between A and B. |
|
28 | 28 | |
29 | 29 | The result is a [[number]] (called a "scalar" so we know it's not a vector). |
30 | 30 |