credit
This commit is contained in:
parent
8a541bbddf
commit
396d689932
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue