summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-14 05:51:50 +0200
committerSven Gothel <[email protected]>2023-05-14 05:51:50 +0200
commitfd575243e2c8754bc4580526de05462761c320ab (patch)
tree229e4d2fbe60ecee08fdba97ba5ccede85e36bd0 /src
parent9d1e7c9adca97780a5b45b135c5693cffee218fc (diff)
SurfaceScaleUtils: Remove unused isZero(..)
Diffstat (limited to 'src')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java b/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java
index 152b189d1..4f2ff20ea 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java
@@ -41,15 +41,6 @@ public class SurfaceScaleUtils {
private static final float EPSILON = 1.1920929E-7f; // Float.MIN_VALUE == 1.4e-45f ; double EPSILON 2.220446049250313E-16d
- /** Returns true if `abs(a) < EPSILON`, otherwise false. */
- public static boolean isZero(final float a) {
- return Math.abs(a) < EPSILON;
- }
- /** Returns true if `isZero(f2[0]) && isZero(f2[1])`, otherwise false. */
- public static boolean isZero(final float[] f2) {
- return isZero(f2[0]) && isZero(f2[1]);
- }
-
/** Returns true if `abs(a-b) < EPSILON`, otherwise false. */
public static boolean isEqual(final float a, final float b) {
return Math.abs(a-b) < EPSILON;