From 74401be43ac786c395cd142967448637194c5394 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Thu, 25 Apr 2024 03:30:15 +0200 Subject: Math: Recti::size(): Change semantics: Return true if area is zero, not if x and y is zero --- src/jogl/classes/com/jogamp/math/Recti.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } /** -- cgit v1.2.3