I was cleaning my files and ran across a letter about putting arcs of a
fixed angle on a circle. It reminded me of the following which might
interest some of you.
You have a number of arcs on a circle each specified by a start and stop
angle. We assume no arc wraps all the way around. What we want is to find
all the sub-arcs that are common to all the specified arcs (again by
start/stop angle). In general for N arcs there are zero to N such
sub-arcs depending on the sizes of the original arcs (Think first of 2 arcs)
The specified arcs are always counter-clockwise on the circle (or, of
course, all clockwise).
Yes I had an APL solution but many years ago.
Ralph S
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm