diff options
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/Crossing.java | 2 |
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--; } |