Showing posts with label algebra. Show all posts
Showing posts with label algebra. Show all posts

Saturday, March 20, 2010

Obstacle in range

Used http://stackoverflow.com/questions/1073336/circle-line-collision-detection article as reference for line-circle intersection.

Following code extracts the part of line that is inside a circle: