mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Rectangle should have a function to check whether a rectangle is empty or not #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The function could be named isEmpty and return true if the rectangle is 
empty (zero width and height) and false otherwise.

Original issue reported on code.google.com by olof.nae...@gmail.com on 15 Sep 2008 at 10:36

GoogleCodeExporter commented 9 years ago
I would consider a rectangle with a negative width or height also rather empty. 
I may
be biased, but that's the definition of empty for both Qt and Java rectangles.

Original comment by b.lindeijer on 16 Sep 2008 at 11:56

GoogleCodeExporter commented 9 years ago
Yeah it probably is.

Original comment by olof.nae...@gmail.com on 16 Sep 2008 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 19 Sep 2008 at 1:43