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;
95 return (isOnSameSide(pf64, af64, bf64, cf64) &&
96 isOnSameSide(pf64, bf64, af64, cf64) &&
97 isOnSameSide(pf64, cf64, af64, bf64));
121 const f64 invDenom = 1/(dotAA * dotBB - dotAB * dotAB);
122 const f64 u = (dotBB * dotAC - dotAB * dotBC) * invDenom;
123 const f64 v = (dotAA * dotBC - dotAB * dotAC ) * invDenom;
186 f64 d = trianglef64.
pointA.dotProduct(normalf64);
188 outIntersectionf64 = linePointf64 + (lineVectf64 * t);
190 outIntersection.
X = (T)outIntersectionf64.
X;
191 outIntersection.
Y = (T)outIntersectionf64.
Y;
192 outIntersection.
Z = (T)outIntersectionf64.
Z;
264 return (res >= 0.0f);