How do I check the distance between a line segment and an arc?
The arc is unfilled, so just the outer edge of the circle it is part of counts.
I want to do collision detection. Basically I have two circular objects. One is moving on a line, and the other on an arc. The objects have a collision radius.
Note that this is not exact collision detection, because I believe there is no closed form solution to do a time-wise analysis (there are iterative solutions) moving at constant speeds.
I just need pseudo-code. While I could do this by converting the arc into two arcs without thickness, and two circles on the ends, and use conventional algorithms, this is time-sensitive. Decomposing it into primitives and checking individually would re-check/re-calculate some things, and I want to avoid any unnecessary calculations.