This commit is contained in:
Frank DeMarco 2015-07-11 16:56:43 -04:00
parent 8a541bbddf
commit 396d689932
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ def place_in_rect(rect, incoming, contain=True, *args):
if not collides:
break
# from http://www.realtimerendering.com/resources/GraphicsGems/gemsii/xlines.c
def get_intersection(p0, p1, p2, p3):
x0, y0 = p0
x1, y1 = p1