Format contains_tile to a single line
This commit is contained in:
parent
68ab16a7cf
commit
07a9433f19
@ -98,9 +98,7 @@ class TileShape:
|
|||||||
|
|
||||||
def contains_tile(self, other: TileShape) -> bool:
|
def contains_tile(self, other: TileShape) -> bool:
|
||||||
"""True if every corner of ``other`` is contained in this shape."""
|
"""True if every corner of ``other`` is contained in this shape."""
|
||||||
return all(
|
return all(self.contains(other.corner(i)) for i in range(other.border_line_count()))
|
||||||
self.contains(other.corner(i)) for i in range(other.border_line_count())
|
|
||||||
)
|
|
||||||
|
|
||||||
# --- measures (approximate) --------------------------------------------
|
# --- measures (approximate) --------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user