Added some optimizations to the barycentric coordinate check.