diff options
author | Sven Gothel <[email protected]> | 2023-04-18 05:26:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-18 05:26:06 +0200 |
commit | f4bf997e5d9efcf299ef871030e7faf58f5b0289 (patch) | |
tree | 813c98207a18aa3248549f584adae31a70a20d8d /src/jogl/classes/com/jogamp | |
parent | c65c750e032118f229050ff8e834961264ed0591 (diff) |
VectorUtil: Fix isVec3InTriangle3(..) testing p1, p2 and p3
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java b/src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java index 2bf468435..d3b2c3cfd 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/math/VectorUtil.java @@ -377,9 +377,8 @@ public final class VectorUtil { } } - { // FIXME: p2? - ap.minus(p1, a); // v3 - // ap.minus(p2, a); // v2 + { + ap.minus(p2, a); // v2 final float dotAC_AP2 = ac.dot(ap); final float dotAB_AP2 = ab.dot(ap); final float u = (dotAB_AB * dotAC_AP2 - dotAC_AB * dotAB_AP2) * invDenom; @@ -391,9 +390,8 @@ public final class VectorUtil { } } - { // FIXME: p3? - ap.minus(p2, a); // v4 - // ap.minus(p3, a); // v3 + { + ap.minus(p3, a); // v3 final float dotAC_AP3 = ac.dot(ap); final float dotAB_AP3 = ab.dot(ap); final float u = (dotAB_AB * dotAC_AP3 - dotAC_AB * dotAB_AP3) * invDenom; @@ -450,9 +448,8 @@ public final class VectorUtil { } } - { // FIXME: p2? - ap.minus(p1, a); // v2 - // ap.minus(p2, a); // v3 + { + ap.minus(p2, a); // v3 final float dotAC_AP2 = ac.dot(ap); final float dotAB_AP2 = ab.dot(ap); final float u = (dotAB_AB * dotAC_AP2 - dotAC_AB * dotAB_AP2) * invDenom; @@ -466,9 +463,8 @@ public final class VectorUtil { } } - { // FIXME: p3? - ap.minus(p2, a); // v2 - // ap.minus(p3, a); // v4 + { + ap.minus(p3, a); // v4 final float dotAC_AP3 = ac.dot(ap); final float dotAB_AP3 = ab.dot(ap); final float u = (dotAB_AB * dotAC_AP3 - dotAC_AB * dotAB_AP3) * invDenom; |