Add Box::IsEmpty()

This commit is contained in:
ArthurSonzogni
2024-04-11 23:07:09 +02:00
parent 3d6c48e800
commit 0279bed8c4
4 changed files with 9 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ struct Box {
static auto Intersection(Box a, Box b) -> Box;
static auto Union(Box a, Box b) -> Box;
bool Contain(int x, int y) const;
int Area() const noexcept;
bool IsEmpty();
bool operator==(const Box& other) const;
bool operator!=(const Box& other) const;
};