aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/math/Recti.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-04-25 03:30:15 +0200
committerSven Göthel <[email protected]>2024-04-25 03:30:15 +0200
commit74401be43ac786c395cd142967448637194c5394 (patch)
treeb495f7bedf62651afa458b2174bcd9ad23099f2f /src/jogl/classes/com/jogamp/math/Recti.java
parent33b1da5886a58feb9ee770f640f7bd07553c1bca (diff)
Math: Recti::size(): Change semantics: Return true if area is zero, not if x and y is zero
Diffstat (limited to 'src/jogl/classes/com/jogamp/math/Recti.java')
-rw-r--r--src/jogl/classes/com/jogamp/math/Recti.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/math/Recti.java b/src/jogl/classes/com/jogamp/math/Recti.java
index 68e0cfd0b..a77bbbb58 100644
--- a/src/jogl/classes/com/jogamp/math/Recti.java
+++ b/src/jogl/classes/com/jogamp/math/Recti.java
@@ -99,9 +99,9 @@ public final class Recti {
public void setWidth(final int width) { this.width = width; }
public void setHeight(final int height) { this.height = height; }
- /** Return true if all components are zero. */
+ /** Return true if area is zero. */
public boolean isZero() {
- return 0 == x && 0 == y;
+ return 0 == width || 0 == height;
}
/**