You receive three vertices of a triangle, A(x1,y1), B(x2,y2), and C(x3,y3), along with two points to test: P(xp,yp) and Q(xq,yq).
AB + BC > AC; no vertex pair may produce a collinear configuration.0 when the triangle fails validation.1 when P lies inside and Q does not,2 when Q lies inside and P does not,3 when both query points lie inside,4 when neither query point lies inside.public static int pointsBelong(int x1, int y1, int x2, int y2, int x3, int y3,
int xp, int yp, int xq, int yq)