Wednesday, August 28, 2013

Line Segment Intersection

I wrote a small JavaScript function to test whether two lines segments intersect. It uses the vector cross product approach described here: http://stackoverflow.com/a/565282/786339.

The code is available here: line-segments-intersect

No comments:

Post a Comment