| 14 | } |
| 15 | |
| 16 | bool Rectangle::overlaps(const Rectangle& other) const noexcept { |
| 17 | const double left = glm::max(this->minimumX, other.minimumX); |
| 18 | const double bottom = glm::max(this->minimumY, other.minimumY); |
| 19 | const double right = glm::min(this->maximumX, other.maximumX); |
| 20 | const double top = glm::min(this->maximumY, other.maximumY); |
| 21 | return bottom < top && left < right; |
| 22 | } |
| 23 | |
| 24 | bool Rectangle::fullyContains(const Rectangle& other) const noexcept { |
| 25 | return ( |
no outgoing calls
no test coverage detected