| 17 | Vec2<T> p0, p1; |
| 18 | |
| 19 | bool within(Vec2<T> p) const |
| 20 | { |
| 21 | return (p.x >= p0.x && p.x < p1.x && p.y >= p0.y && p.y < p1.y); |
| 22 | } |
| 23 | bool withinInclusive(Vec2<T> p) const |
| 24 | { |
| 25 | return (p.x >= p0.x && p.x <= p1.x && p.y >= p0.y && p.y <= p1.y); |
no outgoing calls