triangle: Add triangle → box function
triangle: Add barycentric coordinates of point getter

We can expose the function we use to find whether a given point is
contained in a triangle, as it's generally useful to compute the UV
vector.