For two unit vectors, what is the dot product?
- The cosine of the angle between them
- The area of the region they span
- Their two lengths added together
- A vector perpendicular to them both
That makes it a cheap "is it in front of me?" test.
Play Game Dev ▸