1 #define LOCAL_EPSILON 0.000001f 22 Point edge1 = vert1 - vert0;
23 Point edge2 = vert2 - vert0;
29 float det = edge1|pvec;
45 Point qvec = tvec^edge1;
57 float OneOverDet = 1.0f /
det;
66 float OneOverDet = 1.0f /
det;
77 Point qvec = tvec^edge1;
#define IR(x)
Integer representation of a floating-point value.
#define IS_NEGATIVE_FLOAT(x)
udword mNbRayPrimTests
Number of Ray-Primitive tests.
inline_ BOOL RayTriOverlap(const Point &vert0, const Point &vert1, const Point &vert2)
Point mDir
Ray direction (normalized)
double det(const dmatrix &_a)
int BOOL
Another boolean type.
float mV
Impact barycentric coordinates.
bool mCulling
Stab culled faces or not.
float mDistance
Distance from collider to hitpoint.
#define IEEE_1_0
integer representation of 1.0
CollisionFace mStabbedFace
Current stabbed face.