5 #ifndef __IRR_TRIANGLE_3D_H_INCLUDED__
6 #define __IRR_TRIANGLE_3D_H_INCLUDED__
38 return !(*
this==other);
79 return d1 < d3 ? rab : rca;
81 return d2 < d3 ? rbc : rca;
118 const f64 invDenom = 1/(dotAA * dotBB - dotAB * dotAB);
119 const f64 u = (dotBB * dotAC - dotAB * dotBC) * invDenom;
120 const f64 v = (dotAA * dotBC - dotAB * dotAC ) * invDenom;
124 return (u >= 0) && (v >= 0) && (u + v <= 1);
175 T d =
pointA.dotProduct(normal);
176 T t = -(normal.
dotProduct(linePoint) - d) / t2;
177 outIntersection = linePoint + (lineVect * t);