```python
return self.x < loc.x < self.x + self.w and self.y < loc.y < self.y + self.h
```