Return True if this GlyphCoordinate intersects with the given GlyphCoordinate.
(self, other)
| 227 | |
| 228 | @hybrid_method |
| 229 | def intersects(self, other): |
| 230 | """Return True if this GlyphCoordinate intersects with |
| 231 | the given GlyphCoordinate.""" |
| 232 | |
| 233 | return ~( |
| 234 | (self.x + self.width < other.x) | (self.x > other.x + other.width) |
| 235 | ) & ~( |
| 236 | (self.y + self.height < other.y) |
| 237 | | (self.y > other.y + other.height) |
| 238 | ) |
| 239 | |
| 240 | |
| 241 | class EnemyGlyph(Glyph): |
no outgoing calls
no test coverage detected