From b5a3a3d53dfbf1d9681ec288eaf788f9f058ba98 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Wed, 14 Feb 2024 19:29:35 +0100 Subject: DoubleUtil: Align Epsilon ops w/ FloatUtil --- src/jogl/classes/com/jogamp/math/DoubleUtil.java | 40 ++++++++++++++++++------ src/jogl/classes/com/jogamp/math/FloatUtil.java | 8 ++--- 2 files changed, 34 insertions(+), 14 deletions(-) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/math/DoubleUtil.java b/src/jogl/classes/com/jogamp/math/DoubleUtil.java index e9ccceb10..8f1e44cd0 100644 --- a/src/jogl/classes/com/jogamp/math/DoubleUtil.java +++ b/src/jogl/classes/com/jogamp/math/DoubleUtil.java @@ -149,7 +149,11 @@ public final class DoubleUtil { } /** - * Return true if both values are equal, i.e. their absolute delta < epsilon. + * Returns true if both values are equal, i.e. their absolute delta < {@code epsilon} if 0 != {@code epsilon}, + * otherwise == {@code 0}. + *

+ * {@code epsilon} is allowed to be {@code 0}. + *

*

* Implementation considers following corner cases: *