Class object question

Pages: 12
I've been looking around and a lot of places talk about the area and perimeter of the intersection. In this program I have to find those for each circle? Is there a formula that uses the area and or the perimeter to check for overlap?
Your formula is incorrect. And the excess of temporaries makes your code confusing.
D < R + r -> overlap
D2 < (R + r)2


Maybe there is an easier way, but check http://en.wikipedia.org/wiki/Circular_sector
To find the angle use you could use c2 = a2 + b2 - 2*a*b* cos( ab )
You will need to treat different if the centre is inside.
Last edited on
Topic archived. No new replies allowed.
Pages: 12