summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/geom
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-08 12:39:31 +0200
committerSven Gothel <[email protected]>2014-07-08 12:39:31 +0200
commit81af9b231847f695e6ba1d734209e1e532bbf922 (patch)
tree4acadbdea903ad8fe5e8d913a251e122c2b9b67b /src/jogl/classes/jogamp/graph/geom
parent2fd70277c17c2efff8b5a6c3fc5bd4dddc66736b (diff)
Findbugs: Add FIXME comment regarding float comparison (consider using FloatUtil.isEqual(ax, bx, epsilon), FloatUtil.isZero(bx, epsilon), ..)
Diffstat (limited to 'src/jogl/classes/jogamp/graph/geom')
-rw-r--r--src/jogl/classes/jogamp/graph/geom/plane/Crossing.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java b/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java
index f46dd3c94..2ae9d1867 100644
--- a/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java
+++ b/src/jogl/classes/jogamp/graph/geom/plane/Crossing.java
@@ -190,6 +190,7 @@ public class Crossing {
}
// CURVE-END
if (t > 1 - DELTA) {
+ // FIXME: consider using FloatUtil.isEqual(ax, bx, epsilon), ...
if (py1 < ay && (ax != bx ? ax - bx : bx) > 0.0) {
cross++;
}
@@ -288,6 +289,7 @@ public class Crossing {
}
// CURVE-START
if (t < DELTA) {
+ // FIXME: consider using FloatUtil.isZero(bx, epsilon), ...
if (py1 < 0.0 && (bx != 0.0 ? bx : (cx != bx ? cx - bx : ax - cx)) < 0.0) {
cross--;
}