First, it checks if one of the points of the path is inside the circle. Then, checks every segment of the path and calculates the nearest point of the segment to the circle; if it's less than the circle radius, then, there is an intersection.
To Do
- Better performance by reducing the numbers of segments. Only the closests one depending on the points.
- Remove map as argument
Help From Circle line collision detection