आलेखन डिजाइन In Triangle / Test whether a point is inside a triangle, using barycentric coordinates and this algorithm from blackpawn.