| 176 | IC BOOL intersected(SelfCRef b) const { return intersected(*this, b); } |
| 177 | |
| 178 | IC BOOL intersection(SelfCRef b1, SelfCRef b2) |
| 179 | { |
| 180 | if (!intersected(b1, b2)) |
| 181 | return (FALSE); |
| 182 | |
| 183 | x1 = _max(b1.x1, b2.x1); |
| 184 | y1 = _max(b1.y1, b2.y1); |
| 185 | x2 = _min(b1.x2, b2.x2); |
| 186 | y2 = _min(b1.y2, b2.y2); |
| 187 | return (TRUE); |
| 188 | } |
| 189 | }; |
| 190 | |
| 191 | typedef _rect<float> Frect; |
no test coverage detected