Takes a triangular plane as a polygon and a point within that triangle, and returns the z-value at that point.