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