docstring for distance function
This commit is contained in:
parent
6693ca4514
commit
f5de024ef3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue