Yup, testing if the point is inside the triangle isn't working.
Added some notes about how to test if a point is inside the triangle.