aboutsummaryrefslogtreecommitdiffstats
path: root/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java')
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
index 834686bc2..a32606104 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
@@ -424,7 +424,7 @@ public class UIShapeDemo01 implements GLEventListener {
// final float[] translate = crossHair.getTranslate();
// final float[] objPosT = new float[] { objPosC[0]+translate[0], objPosC[1]+translate[1], objPosC[2]+translate[2] };
final Vec3f diff = winObjPos.minus(objPosC);
- if( !FloatUtil.isZero(diff.x(), FloatUtil.EPSILON) || !FloatUtil.isZero(diff.y(), FloatUtil.EPSILON) ) {
+ if( !FloatUtil.isZero(diff.x()) || !FloatUtil.isZero(diff.y()) ) {
System.err.println("CrossHair: Move.1: Win "+glWinX+"/"+glWinY+" -> Obj "+winObjPos+" -> diff "+diff);
crossHair.move(diff.x(), diff.y(), 0f);
} else {