The problem: given vertices that define a polygon, determine whether another point $P$ lies inside the polygon or not.
Proposed solution: suppose we have a triangle $A, B, C$. Calculate the areas of the triangles that $P$ forms with the other points: $PAB, PBC, PAC$. Iff $P$ lies inside the triangle, then $\text{area}(PAB) + \text{area}(PBC) + \text{area}(PAC) = \text{area}(ABC)$.
I found this method described here, and it seems to work for any polygon. Is this the case? If so, is there a reference? I can't find it listed as any of the common solutions to this problem.