Implement tests for point-triangle intersection and point-quadrilateral intersection in 2d and 3d coorddim.