kivy/kivy — pull request #1551 by dami0 (2013-10-03 12:38:25+00:00)
Title: Segment intersect

Well, I was whining about not having a segment_intersection and somebody said I should make my own so here it is.

All I did was copy the line_intersection code and add a few | if | statements to check if the point falls within the rectangles set by the coordinates of the segments.

I had to copy the code because I was unable to get the line_intersect call to work properly -> [0.0.5, 0.05] automagically transformed into [-0.0, 0.1]. It annoyed me, probably wouldn't be noticed until the end of time but I thought I'd rather do it rigorously.