X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGIntersect.hxx;h=533bd2dc005db90668737ec250fdd1a64db4ead2;hb=145a7fa1467c028f80e141a324950b2c47e34b7b;hp=6ffffeb89d222396f1c355bffd2d46bf5b7bc1d4;hpb=006f90997a8eef6704de2511e38fcc786672308d;p=simgear.git diff --git a/simgear/math/SGIntersect.hxx b/simgear/math/SGIntersect.hxx index 6ffffeb8..533bd2dc 100644 --- a/simgear/math/SGIntersect.hxx +++ b/simgear/math/SGIntersect.hxx @@ -572,13 +572,15 @@ closestPoint(const SGTriangle& tri, const SGVec3& p) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| - // |\ + // |\ // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) { @@ -766,13 +768,15 @@ intersects(const SGTriangle& tri, const SGSphere& sphere) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| - // |\ + // |\ // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) {