Triangle intersection
This is a very fast implementation of line to triabngle intersection. Useful for any kind of raytraceing.
f_raycast_trif
boolean f_raycast_trif(float orig[3], float dir[3], float vert0[3], float vert1[3], float vert2[3], float *t, float *u, float *v);
Description: 32 bit float line to triabngle intersection without backface culling.f_raycast_tri_cullf
boolean f_raycast_tri_cullf(float orig[3], float dir[3], float vert0[3], float vert1[3], float vert2[3], float *t, float *u, float *v);
Description: 32 bit float line to triabngle intersection with backface culling.f_raycast_trid
boolean f_raycast_trid(double orig[3], double dir[3], double vert0[3], double vert1[3], double vert2[3], double *t, double *u, double *v);
Description: 64 bit double line to triabngle intersection without backface culling.f_raycast_tri_culld
boolean f_raycast_tri_culld(double orig[3], double dir[3], double vert0[3], double vert1[3], double vert2[3], double *t, double *u, double *v);
Description: 64 bit float line to triabngle intersection with backface culling.