proof of when is a point inside a triangle
Let , and . Let’s consider the convex hullof the set .By definition, the convex hull of , noted , is the smallestconvex set that contains . Now, the triangle spannedby is convex and contains . Then .Now, every convex set containing must satisfy that , and for (atleast the convex combination of the points of are contained in). This means that the boundary of is containedin . But then every convex combination of points of must also be contained in , meaning that for every convex set containing . In particular, .
Since the convex hull is exactly the set containing all convex combinationsof points of ,
we conclude that is in the trianglespanned by if and only if with and .