What I do is precalculate the three face normals,
in 3D by cross product of side vector and the face normal vector.
in 2D by simply swapping components and negating one,
then inside/outside for any one side is when a dot product of the side normal and the vertex to point vector, change sign. Repeat for other two (or more) sides.
Benefits:
a lot is precalculated so great for multiple point testing on same triangle.
early rejection of common case of more outside than inside points. (also if point distribution weighted to one side, can test that side first.)