A quick diagram of the dot product — one of the most useful 3D math tools in game development.
The dot product tells you how aligned two vectors are — basically, “how much are these pointing the same way?”
If the vectors point the same direction, the dot product is higher. If they’re perpendicular, it’s 0.