| 98 | } |
| 99 | |
| 100 | bool Rect::contains(const Point &point) const { |
| 101 | return point.x >= this->left && point.x <= this->right |
| 102 | && point.y >= this->top && point.y <= this->bottom; |
| 103 | } |
| 104 | |
| 105 | uintptr_t Rect::hash() const { |
| 106 | return (31U * std::hash<int>{}(top) << 1 ^ std::hash<int>{}(bottom) << 2) ^ |
no outgoing calls
no test coverage detected