swplot.raytriangle(V,F,ray) determines if a given ray crosses within a
triangle defined by its vertex coordinates. The code is optimised for
a single ray and multiple triangles.
- Vertex positions in a matrix with dimensions .
- Faces in a matrix with dimensions , where .
- Definition of the ray via 2 points in space, stored in a matrix with dimensions of . The two points of the ray, and , are stored in the first and second rows respectively. The ray points from to .