From 47233ea7014e34adca8a5c1d2323a57e9de1c7fa Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 3 Sep 2023 08:31:24 +0200 Subject: 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. --- src/jogl/classes/com/jogamp/opengl/math/Vec4f.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/math/Vec4f.java') diff --git a/src/jogl/classes/com/jogamp/opengl/math/Vec4f.java b/src/jogl/classes/com/jogamp/opengl/math/Vec4f.java index a5276c7f1..914450bf1 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/Vec4f.java +++ b/src/jogl/classes/com/jogamp/opengl/math/Vec4f.java @@ -356,7 +356,7 @@ public final class Vec4f { } /** - * Equals check using {@link FloatUtil#EPSILON} value and {@link FloatUtil#isEqual(float, float, float)}. + * Equals check using {@link FloatUtil#EPSILON} in {@link FloatUtil#isEqual(float, float)}. *

* Implementation considers following corner cases: *