X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGIntersect.hxx;h=533bd2dc005db90668737ec250fdd1a64db4ead2;hb=578af00b0d48100c540154f54293a1b77a0655fe;hp=aea3bb3ea9dab89d54be518787baae5253267437;hpb=75c2a45b25bcf1201e36ca8aacaefd03dd58d01d;p=simgear.git diff --git a/simgear/math/SGIntersect.hxx b/simgear/math/SGIntersect.hxx index aea3bb3e..533bd2dc 100644 --- a/simgear/math/SGIntersect.hxx +++ b/simgear/math/SGIntersect.hxx @@ -572,6 +572,7 @@ closestPoint(const SGTriangle& tri, const SGVec3& p) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| @@ -579,6 +580,7 @@ closestPoint(const SGTriangle& tri, const SGVec3& p) // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) { @@ -766,6 +768,7 @@ intersects(const SGTriangle& tri, const SGSphere& sphere) T u = b*e - c*d; T v = b*d - a*e; +/* // Regions // \2| // \| @@ -773,6 +776,7 @@ intersects(const SGTriangle& tri, const SGSphere& sphere) // 3 |0\ 1 //---------- // 4 | 5 \ 6 +*/ if (u + v <= det) { if (u < 0) {