Function to check if a point lies inside a triangle or not
static int isInside ( List < List < int > > triangle , List < int > point ) { List < int > A = triangle [ 0 ] ; List < int > B = triangle [ 1 ] ; List < int > C = triangle [ 2 ] ; int x = point [ 0 ] ; int y = point [ 1 ] ;