The vectors defined by (p1, p2), (p1, p3) and (p2, p3) are all in the plane defined by p1, p2, and p3. Let us call these vectors A, B, and C. The cross-product of any two of A, B, and C will be normal to the plane.