| 89 | } |
| 90 | |
| 91 | bool Rect::isEmpty() const { |
| 92 | return this->left >= this->right || this->top >= this->bottom; |
| 93 | } |
| 94 | |
| 95 | Point Rect::center() const { |
| 96 | return {(int) ((double) (this->top) + 0.5f * (double) (this->bottom - this->top)), |
no outgoing calls
no test coverage detected