(P1 - P0) crossproduct (P2 - P0) crossproduct (0, 0, 1) Where P0 P1 P2 are points of the triangle, and (0, 0, 1) is the vertical vector