Line - triangle intersection in 3D
This code will calculate whether or not a line will intersect with a triangle in 3D space, and store the intersection coordinates in ix#, iy#, iz# if made global.
Note that the vectors 1 and 2 have to be created in order to work.
The D3D plugin by Cloggy is only used for visualisation of the line. Leaving those commands out will not affect the function.