returns true if a 2D point is inside a triangle