Returns whether this Rect contains a point, inclusive on the left/top, exclusive on the right/bottom. Correctly handles infinite Rects. */
| 324 | Correctly handles infinite Rects. |
| 325 | */ |
| 326 | bool contains(Vec v) const { |
| 327 | return (pos.x <= v.x) && (size.x == INFINITY || v.x < pos.x + size.x) |
| 328 | && (pos.y <= v.y) && (size.y == INFINITY || v.y < pos.y + size.y); |
| 329 | } |
| 330 | /** Returns whether this Rect contains (is a superset of) a Rect. |
| 331 | Correctly handles infinite Rects. |
| 332 | */ |
no outgoing calls
no test coverage detected