News for hackers. Stuff that matters.
Re:Calculating the intersection area of 3 or more circles by dnautics on Wednesday July 01, 2015 @04:06AM (#9810543)
There is a simple calculus solution that is more elegant that the primary school maths solution... That is to use Green's Theorem.

https://en.wikipedia.org/wiki/Green%27s_theorem#Area_Calcula...

In fact, the algorithm for the area of the interior polygon that you are using itself (shoelace algorithm) uses green's theorem 'in stealth mode'.

There are no comments on this comment yet.