2D point in triangle test using barycentric coordinates