Add NSPointInTriangle function.