| 120 | ) const { return (t > b || l > r); } |
| 121 | |
| 122 | drectangle operator + ( |
| 123 | const drectangle& rhs |
| 124 | ) const |
| 125 | { |
| 126 | if (rhs.is_empty()) |
| 127 | return *this; |
| 128 | else if (is_empty()) |
| 129 | return rhs; |
| 130 | |
| 131 | return drectangle ( |
| 132 | std::min(l,rhs.l), |
| 133 | std::min(t,rhs.t), |
| 134 | std::max(r,rhs.r), |
| 135 | std::max(b,rhs.b) |
| 136 | ); |
| 137 | } |
| 138 | |
| 139 | drectangle intersect ( |
| 140 | const drectangle& rhs |
nothing calls this directly
no test coverage detected