docstring for distance function

This commit is contained in:
frank 2022-02-27 00:14:03 -05:00
parent 6693ca4514
commit f5de024ef3
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ def mirrored(iterable, full=False, tail=True):
yield item
def get_distance(p0, p1):
"""
Return the distance between two points
"""
return sqrt((p0[0] - p1[0]) ** 2 + (p0[1] - p1[1]) ** 2)
def place_in_rect(rect, incoming, contain=True, *args):