1
$\begingroup$

how can one calculate the minimum and maximum distance between two given circular arcs?

I know everything of each arc: startangle, endangle, center, radius of arc. The only thing I don't know how to calculate is the min and max distance.

Thanks in advance

  • 0
    @MarkBennet yes.2011-12-29

2 Answers 2

3

There are four cases to consider:

1) Endpoints of both arcs

2) An endpoint of one and an interior point of the other, which is on the line through that endpoint and the centre of the other arc.

3) Interior points of both arcs, which are on the line through the centres of the two arcs.

4) Intersections of the two arcs (thanks for pointing that out, Lopsy)

  • 0
    @Lopsy - that looks right But other than that Robert gave the answer I was just about to post.2011-12-29
0

If you know the center of the circular arcs (not meaning its midpoint but a point from which the distance to all the points on the arc is the same, just to avoid confusion), then you can easily calculate the minimum distance. Just use the distance formula to find the distance between the centers and subtract (add alternatively) the radii. This will yield the min. distance. The only problem might be that in some cases the arcs will not face each other directly and if that is the case, you would have to proceed differently. You would have to set a distance function that would express distance between one arc and second arc. This can be done by finding the min. distance between arc and the other arc's center and its radius and plugging it into the cosine rule. Minimizing this will give you the angle at which is the point closest to the other arc.