Returns True if the given coordinates (x, y) are inside the node radius.
(self, x, y)
| 186 | self.y + self.radius) |
| 187 | |
| 188 | def contains(self, x, y): |
| 189 | """ Returns True if the given coordinates (x, y) are inside the node radius. |
| 190 | """ |
| 191 | return abs(self.x - x) < self.radius*2 and \ |
| 192 | abs(self.y - y) < self.radius*2 |
| 193 | |
| 194 | def __repr__(self): |
| 195 | return "%s(id=%s)" % (self.__class__.__name__, repr(self.id)) |
no test coverage detected