Deleted the is_left_of function (not working well in 3D) and used barycentric coordinates instead in the is_inside function.

The is_inside function now only works on convex domains and the order
of the corners now does not matter.