We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Subject says it all. I'm drawing a number of arc's like this:
arc(x1, y1, w1, h1, start1, stop1, PIE); arc(x2, y2, w2, h2, start2, stop2, PIE);
... and I'd like to find out before I draw them if the arcs intersect/overlap/share pixels (using these terms synonymously). It's not enough to check the two ellipses because the ellipses can overlap long before the arcs overlap.
Would prefer some nice elegant math, but I do have one duct-tape idea:
Draw both arcs to some kind of off screen buffer using semi-transparent fill colors, then scan the buffer for pixels colored to reflect an overlap. Big buffer, so probably check the ellipses first, then just check pixels within the ellipses somehow.
Very grateful for any suggestions!