aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/geom
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-03 08:31:24 +0200
committerSven Gothel <[email protected]>2023-09-03 08:31:24 +0200
commit47233ea7014e34adca8a5c1d2323a57e9de1c7fa (patch)
tree8911ce16673237d6c6c568a5e4a68874c4ccb877 /src/jogl/classes/com/jogamp/graph/geom
parente6087583dc06c823f54bb6206af2acb0e2119b4c (diff)
FloatUtil.isEqual(..): Rename raw {isEqual->isEqualRaw}(a,b) varianr w/o EPSILON; Add isEqual(a,b) w/ default EPSILON; Use it where applicable
Also add isEqual2(a,b) w/o corner cases (NaN, Inf) used for comparison in Graph Outline, OutlineShape and later GraphUI Shape.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/geom')
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Outline.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Outline.java b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
index a0999baa1..654bd2636 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Outline.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
@@ -318,7 +318,7 @@ public class Outline implements Comparable<Outline> {
public final int compareTo(final Outline other) {
final float thisSize = getBounds().getSize();
final float otherSize = other.getBounds().getSize();
- if( FloatUtil.isEqual(thisSize, otherSize, FloatUtil.EPSILON) ) {
+ if( FloatUtil.isEqual2(thisSize, otherSize) ) {
return 0;
} else if(thisSize < otherSize){
return -1;