Problem: given a point r and a triangle defined by points ABC, tell if the point is inside or outside the triangle.
My C++ solution:
Why does this work?
my solution has to do with this: barycentric_points.
Email me at nawatheyvarun (at) gmail (dot) com if you have questions.