Add queries to quadtree.

Cleaner quadtree code and comments
This commit is contained in:
Johann Dreo 2014-07-29 09:12:58 +02:00
commit a1838de026
2 changed files with 142 additions and 51 deletions

View file

@ -142,8 +142,7 @@ def in_box( point, box, exclude_edges = False ):
def segment_intersection( seg0, seg1 ):
"""Return the coordinates of the intersection point of two segments, or None.
If segments are colinear, returns colinear_value."""
"""Return the coordinates of the intersection point of two segments, or None."""
assert( len(seg0) == 2 )
assert( len(seg1) == 2 )