yfede
3
The current isEmpty() returns whether the area of the rectangle is 0 (i.e. at least one of the dimensions is 0).
I think this case shows that it would be helpful to also have a method that returns whether both the dimensions are 0
I proposed such addition a while ago, feel free to vote it:
1 Like