32 const T EPSILON = 0.0000001;
45 if (det > -EPSILON && det < EPSILON) {
52 svec = rayOrigin - v0;
55 if (u < 0.0 || u > 1.0) {
62 if (v < 0.0 || u + v > 1.0) {
double T
Definition constant_defaults.h:118
void crossProduct(const Array< _Tp, 3 > &one, const Array< _Tp2, 3 > &two, Array< _Tp3, 3 > &result)
Definition array.h:199
int MollerTrumbore(const hemo::Array< T, 3 > &v0, const hemo::Array< T, 3 > &v1, const hemo::Array< T, 3 > &v2, hemo::Array< plint, 3 > &rayPoint)
Definition mollerTrumbore.h:30
_Tp dot(const Array< _Tp, _Nm > &one, const Array< _Tp, _Nm > &two)
Definition array.h:220