(Vec2 point)
| 85 | } |
| 86 | |
| 87 | public boolean intersects(Vec2 point) { |
| 88 | return point.x>=x && point.x<=(x+w) && point.y>=y && point.y<=(y+h); |
| 89 | } |
| 90 | |
| 91 | public boolean intersects(Rect r) { |
| 92 | return (r.x<this.x+this.w && r.w+r.x>this.x && r.y<this.y+this.h && r.y+r.h>this.y); |
no outgoing calls
no test coverage detected