Login

Fancade Wiki

Updated Dot Product.md (markdown)

... ...
@@ -18,7 +18,7 @@ A · B = \|A\| × \|B\| × cos(θ)
18 18
19 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.
20 20
21
So we multiply the length of A times the length of B, then multiply by the cosine of the angle between A and B.
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.
22 22
23 23
We can also calculate it algebraically this way:
24 24
... ...
@@ -38,7 +38,7 @@ If the angle is obtuse, then the dot product is negative.
38 38
39 39
## Example
40 40
41
The dot product of two unit vectors outputs the cosine of the angle between those two vectors. If our two inputs aren't unit vectors, we can find the cosine with two methods:
41
The dot product of two [[unit vector|Normalize]]s outputs the cosine of the angle between those two vectors. If our two inputs aren't unit vectors, we can find the cosine with two methods:
42 42
- Normalize the two input vectors first.
43 43
- Get the output of the dot product and divide it by the product of the two input vectors' length.
44 44
Fancade Wiki