Cyan Hall C H
Created by Last updated: 11/25/2020 👉   Dot Product can be used to check how similar two vectors are, ie check if they are looking at the same point.

Dot Product returns the product of the magnitude of two vectors and the `cosine` of the angle between them.

For Normalzied vectors, magnitude = 1, so the result is just the cosin of the angle formed by the vectors.

Dot Product can be used to project the scalar length of one vector onto another.
  • When the two vectors match, the result will be the magnitude of the vectors multiplied together.
  • When the vectors point opposite directions the result will be the product of the magnitudes times -1
  • When they are perpendicular, the result will always be 0.
A: (0, 0, 1)
=> normalzied:
(0, 0, 1)

X: -1 1

Y: -1 1

Z: -1 1

Vector B: (0, 1, 1) => normalzied: (0, 0.7071, 0.7071)

The Dot Product of normalzied A and B is: (approximate number) :
Ax × Bx + Ay × By + Az × Bz = 0.70711