Pergunta de entrevista da empresa Epic Lift Systems

Given four Cartesian coordinates, three of which form a triangle and the fourth, a single point, describe an algorithm that decides whether the fourth point is within the triangle or not.